public class EnvCredentialPlugin extends Object implements CredentialPlugin
default implementation use environment variable SINGLESTORE_USER and SINGLESTORE_PWD
example : `jdbc:singlestore://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(Configuration conf,
String userName,
HostAddress hostAddress)
Permit initializing plugin if overridden
|
String |
type()
credential identifier
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdefaultAuthenticationPluginType, mustUseSslpublic String type()
CredentialPlugintype in interface CredentialPluginpublic CredentialPlugin initialize(Configuration conf, String userName, HostAddress hostAddress)
CredentialPlugininitialize in interface CredentialPluginconf - configurationuserName - userhostAddress - host informationpublic Credential get()
get in interface CredentialPluginCopyright © 2025 SingleStore. All rights reserved.