Class PropertiesCredentialPlugin
- java.lang.Object
-
- org.mariadb.jdbc.plugin.credential.system.PropertiesCredentialPlugin
-
- All Implemented Interfaces:
Supplier<Credential>,CredentialPlugin
public class PropertiesCredentialPlugin extends Object implements 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 .
-
-
Constructor Summary
Constructors Constructor Description PropertiesCredentialPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Credentialget()CredentialPlugininitialize(Configuration conf, String userName, HostAddress hostAddress)Permit initializing plugin if overriddenStringtype()credential identifier-
Methods 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
-
-
-
-
Method Detail
-
type
public String type()
Description copied from interface:CredentialPlugincredential identifier- Specified by:
typein interfaceCredentialPlugin- Returns:
- type
-
initialize
public CredentialPlugin initialize(Configuration conf, String userName, HostAddress hostAddress)
Description copied from interface:CredentialPluginPermit initializing plugin if overridden- Specified by:
initializein interfaceCredentialPlugin- Parameters:
conf- configurationuserName- userhostAddress- host information- Returns:
- credential plugin
-
get
public Credential get()
- Specified by:
getin interfaceSupplier<Credential>
-
-