Package com.mongodb
Class AwsCredential
java.lang.Object
com.mongodb.AwsCredential
A representation of Amazon Web Services credentials for API authentication.
-
Constructor Summary
ConstructorDescriptionAwsCredential
(String accessKeyId, String secretAccessKey, String sessionToken) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionGets the access key ID that identifies the temporary security credentials.Gets the secret access key that can be used to sign requests.Gets the session token.
-
Constructor Details
-
AwsCredential
Construct a new instance.- Parameters:
accessKeyId
- the non-null access key ID that identifies the temporary security credentials.secretAccessKey
- the non-null secret access key that can be used to sign requestssessionToken
- the session token, which may be null
-
-
Method Details
-
getAccessKeyId
Gets the access key ID that identifies the temporary security credentials.- Returns:
- the accessKeyId, which may not be null
-
getSecretAccessKey
Gets the secret access key that can be used to sign requests.- Returns:
- the secretAccessKey, which may not be null
-
getSessionToken
Gets the session token.- Returns:
- the sessionToken, which may not be null
-