Class PropertiesCredentialPlugin
java.lang.Object
org.mariadb.jdbc.plugin.credential.system.PropertiesCredentialPlugin
- All Implemented Interfaces:
Supplier<Credential>
,CredentialPlugin
Authentication using java system properties.
default implementation use system properties `mariadb.user` and `mariadb.pwd`
example : `jdbc:mariadb://host/db?credentialType=PROPERTY`
2 options `userKey` and `pwdKey` permits indicating which system properties to use .
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()
initialize
(Configuration conf, String userName, HostAddress hostAddress) Permit initializing plugin if overriddentype()
credential identifierMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.mariadb.jdbc.plugin.CredentialPlugin
defaultAuthenticationPluginType, mustUseSsl
-
Field Details
-
conf
-
userName
-
-
Constructor Details
-
PropertiesCredentialPlugin
public PropertiesCredentialPlugin()
-
-
Method Details
-
type
Description copied from interface:CredentialPlugin
credential identifier- Specified by:
type
in interfaceCredentialPlugin
- Returns:
- type
-
initialize
Description copied from interface:CredentialPlugin
Permit initializing plugin if overridden- Specified by:
initialize
in interfaceCredentialPlugin
- Parameters:
conf
- configurationuserName
- userhostAddress
- host information- Returns:
- credential plugin
-
get
- Specified by:
get
in interfaceSupplier<Credential>
-