public class EnvCredentialPlugin extends Object implements CredentialPlugin
default implementation use environment variable MARIADB_USER and MARIADB_PWD
example : `jdbc:oceanbase://host/db?credentialType=ENV`
2 options `userKey` and `pwdKey` permits to indicate which environment variable to use.
| 构造器和说明 |
|---|
EnvCredentialPlugin() |
| 限定符和类型 | 方法和说明 |
|---|---|
Credential |
get() |
CredentialPlugin |
initialize(Options options,
String userName,
HostAddress hostAddress) |
String |
name() |
String |
type() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdefaultAuthenticationPluginType, mustUseSslpublic String type()
type 在接口中 CredentialPluginpublic String name()
name 在接口中 CredentialPluginpublic CredentialPlugin initialize(Options options, String userName, HostAddress hostAddress)
initialize 在接口中 CredentialPluginpublic Credential get()
get 在接口中 Supplier<Credential>Copyright © 2024 oceanbase.com. All rights reserved.