Class AwsIamCredentialPlugin
- java.lang.Object
-
- org.mariadb.jdbc.plugin.credential.aws.AwsIamCredentialPlugin
-
- All Implemented Interfaces:
Supplier<Credential>,CredentialPlugin
public class AwsIamCredentialPlugin extends Object implements 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.
-
-
Constructor Summary
Constructors Constructor Description AwsIamCredentialPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Credentialget()CredentialPlugininitialize(Configuration conf, String userName, HostAddress hostAddress)booleanmustUseSsl()Stringtype()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.mariadb.jdbc.plugin.CredentialPlugin
defaultAuthenticationPluginType
-
-
-
-
Method Detail
-
type
public String type()
- Specified by:
typein interfaceCredentialPlugin
-
mustUseSsl
public boolean mustUseSsl()
- Specified by:
mustUseSslin interfaceCredentialPlugin
-
initialize
public CredentialPlugin initialize(Configuration conf, String userName, HostAddress hostAddress) throws SQLException
- Specified by:
initializein interfaceCredentialPlugin- Throws:
SQLException
-
get
public Credential get()
- Specified by:
getin interfaceSupplier<Credential>
-
-