Package org.mariadb.jdbc.plugin
Interface CredentialPlugin
- All Superinterfaces:
Supplier<Credential>
- All Known Implementing Classes:
AwsIamCredentialPlugin
,EnvCredentialPlugin
,PropertiesCredentialPlugin
Credential plugin definition, to permit providing Credential to server
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
Indicate authentication plugin type to use for authenticationdefault CredentialPlugin
initialize
(Configuration conf, String userName, HostAddress hostAddress) Permit initializing plugin if overriddendefault boolean
Indicate if plugin must throw an error if SSL is not enabledtype()
credential identifier
-
Method Details
-
type
String type()credential identifier- Returns:
- type
-
mustUseSsl
default boolean mustUseSsl()Indicate if plugin must throw an error if SSL is not enabled- Returns:
- if ssl is required
-
defaultAuthenticationPluginType
Indicate authentication plugin type to use for authentication- Returns:
- plugin type to use for authentication, or null for default
-
initialize
default CredentialPlugin initialize(Configuration conf, String userName, HostAddress hostAddress) throws SQLException Permit initializing plugin if overridden- Parameters:
conf
- configurationuserName
- userhostAddress
- host information- Returns:
- credential plugin
- Throws:
SQLException
- if any error occurs
-