Class AwsIamCredentialPlugin
java.lang.Object
org.mariadb.jdbc.credential.aws.AwsIamCredentialPlugin
- All Implemented Interfaces:
Supplier<Credential>, CredentialPlugin
Permit AWS database IAM authentication.
Token is generated using IAM credential and region.
Implementation use SDK DefaultAWSCredentialsProviderChain and DefaultAwsRegionProviderChain (environment variable / system properties, files, ...) or using connection string options : accessKeyId, secretKey, region.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()initialize(Options options, String userName, HostAddress hostAddress) booleanname()type()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CredentialPlugin
defaultAuthenticationPluginType
-
Constructor Details
-
AwsIamCredentialPlugin
public AwsIamCredentialPlugin()
-
-
Method Details
-
type
- Specified by:
typein interfaceCredentialPlugin
-
name
- Specified by:
namein interfaceCredentialPlugin
-
mustUseSsl
public boolean mustUseSsl()- Specified by:
mustUseSslin interfaceCredentialPlugin
-
initialize
public CredentialPlugin initialize(Options options, String userName, HostAddress hostAddress) throws SQLException - Specified by:
initializein interfaceCredentialPlugin- Throws:
SQLException
-
get
- Specified by:
getin interfaceSupplier<Credential>
-