Class EnvCredentialPlugin
java.lang.Object
org.mariadb.jdbc.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 to indicate which environment variable to use.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()initialize(Options options, String userName, HostAddress hostAddress) name()type()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CredentialPlugin
defaultAuthenticationPluginType, mustUseSsl
-
Constructor Details
-
EnvCredentialPlugin
public EnvCredentialPlugin()
-
-
Method Details
-
type
- Specified by:
typein interfaceCredentialPlugin
-
name
- Specified by:
namein interfaceCredentialPlugin
-
initialize
- Specified by:
initializein interfaceCredentialPlugin
-
get
- Specified by:
getin interfaceSupplier<Credential>
-