Package com.mongodb

Class AwsCredential

    • 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 requests
        sessionToken - 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