Package io.revealbi.core.data
Class RVAmazonWebServicesCredentials
java.lang.Object
io.revealbi.core.data.RVAmazonWebServicesCredentials
- All Implemented Interfaces:
IRVDataSourceCredential
The class used to represent authentication for AWS, like required by data sources like Athena or S3.
-
Constructor Summary
ConstructorsConstructorDescriptionRVAmazonWebServicesCredentials(String key, String secret) Creates AWS credentials with access key and secret (no session token).RVAmazonWebServicesCredentials(String key, String secret, String sessionToken) Creates AWS credentials with access key, secret and an optional session token (for temporary credentials). -
Method Summary
-
Constructor Details
-
RVAmazonWebServicesCredentials
Creates AWS credentials with access key and secret (no session token).- Parameters:
key- The AWS access key ID.secret- The AWS secret access key.
-
RVAmazonWebServicesCredentials
Creates AWS credentials with access key, secret and an optional session token (for temporary credentials).- Parameters:
key- The AWS access key ID.secret- The AWS secret access key.sessionToken- The session token for temporary credentials, ornullif not required.
-
-
Method Details
-
getKey
Returns the AWS access key ID.- Returns:
- The access key ID.
-
getSecret
Returns the AWS secret access key.- Returns:
- The secret access key.
-
getSessionToken
Returns the session token for temporary AWS credentials.- Returns:
- The session token, or
nullif not set.
-