Package com.mongodb
Class AwsCredential
- java.lang.Object
-
- com.mongodb.AwsCredential
-
-
Constructor Summary
Constructors Constructor Description AwsCredential(String accessKeyId, String secretAccessKey, String sessionToken)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAccessKeyId()
Gets the access key ID that identifies the temporary security credentials.String
getSecretAccessKey()
Gets the secret access key that can be used to sign requests.String
getSessionToken()
Gets the session token.
-
-
-
Constructor Detail
-
AwsCredential
public AwsCredential(String accessKeyId, String secretAccessKey, String sessionToken)
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 non-null session token
-
-
Method Detail
-
getAccessKeyId
public String getAccessKeyId()
Gets the access key ID that identifies the temporary security credentials.- Returns:
- the accessKeyId, which may not be null
-
getSecretAccessKey
public String getSecretAccessKey()
Gets the secret access key that can be used to sign requests.- Returns:
- the secretAccessKey, which may not be null
-
getSessionToken
public String getSessionToken()
Gets the session token.- Returns:
- the sessionToken, which may not be null
-
-