public class EnvCredentialPlugin extends java.lang.Object implements CredentialPlugin
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.
| Modifier and Type | Field and Description |
|---|---|
private Options |
options |
private java.lang.String |
userName |
| Constructor and Description |
|---|
EnvCredentialPlugin() |
| Modifier and Type | Method and Description |
|---|---|
Credential |
get() |
CredentialPlugin |
initialize(Options options,
java.lang.String userName,
HostAddress hostAddress) |
java.lang.String |
name() |
java.lang.String |
type() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdefaultAuthenticationPluginType, mustUseSslprivate Options options
private java.lang.String userName
public java.lang.String type()
type in interface CredentialPluginpublic java.lang.String name()
name in interface CredentialPluginpublic CredentialPlugin initialize(Options options, java.lang.String userName, HostAddress hostAddress)
initialize in interface CredentialPluginpublic Credential get()
get in interface java.util.function.Supplier<Credential>