public class PropertiesCredentialPlugin extends Object implements CredentialPlugin
default implementation use system properties `mariadb.user` and `mariadb.pwd`
example : `jdbc:mariadb://host/db?credentialType=PROPERTY`
2 options `userKey` and `pwdKey` permits to indicate which system properties to use .
| Constructor and Description |
|---|
PropertiesCredentialPlugin() |
| Modifier and Type | Method and Description |
|---|---|
Credential |
get() |
CredentialPlugin |
initialize(Options options,
String userName,
HostAddress hostAddress) |
String |
name() |
String |
type() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdefaultAuthenticationPluginType, mustUseSslpublic String type()
type in interface CredentialPluginpublic String name()
name in interface CredentialPluginpublic CredentialPlugin initialize(Options options, String userName, HostAddress hostAddress)
initialize in interface CredentialPluginpublic Credential get()
get in interface Supplier<Credential>Copyright © 2020 mariadb.com. All rights reserved.