public class EnvCredentialPlugin extends 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.
Constructor and Description |
---|
EnvCredentialPlugin() |
Modifier and Type | Method and Description |
---|---|
Credential |
get() |
CredentialPlugin |
initialize(Options options,
String userName,
HostAddress hostAddress) |
String |
name() |
String |
type() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
defaultAuthenticationPluginType, mustUseSsl
public String type()
type
in interface CredentialPlugin
public String name()
name
in interface CredentialPlugin
public CredentialPlugin initialize(Options options, String userName, HostAddress hostAddress)
initialize
in interface CredentialPlugin
public Credential get()
get
in interface Supplier<Credential>
Copyright © 2020 mariadb.com. All rights reserved.