Class EnvCredentialPlugin
java.lang.Object
org.mariadb.jdbc.plugin.credential.env.EnvCredentialPlugin
- All Implemented Interfaces:
Supplier<Credential>
,CredentialPlugin
Authentication using environment variable.
default implementation use environment variable MARIADB_USER and MARIADB_PWD
example : `jdbc:mariadb://host/db?credentialType=ENV`
2 options `userKey` and `pwdKey` permits indicating which environment variable to use.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()
initialize
(Configuration conf, String userName, HostAddress hostAddress) type()
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
-
Field Details
-
conf
-
userName
-
-
Constructor Details
-
EnvCredentialPlugin
public EnvCredentialPlugin()
-
-
Method Details
-
type
- Specified by:
type
in interfaceCredentialPlugin
-
initialize
- Specified by:
initialize
in interfaceCredentialPlugin
-
get
- Specified by:
get
in interfaceSupplier<Credential>
-