Class Credentials
java.lang.Object
com.amazonaws.services.cognitoidentity.model.Credentials
- All Implemented Interfaces:
Serializable
,Cloneable
Credentials for the provided identity ID.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The Access Key portion of the credentials.The date at which these credentials will expire.The Secret Access Key portion of the credentialsThe Session Token portion of the credentialsint
hashCode()
void
setAccessKeyId
(String accessKeyId) The Access Key portion of the credentials.void
setExpiration
(Date expiration) The date at which these credentials will expire.void
setSecretKey
(String secretKey) The Secret Access Key portion of the credentialsvoid
setSessionToken
(String sessionToken) The Session Token portion of the credentialstoString()
Returns a string representation of this object; useful for testing and debugging.withAccessKeyId
(String accessKeyId) The Access Key portion of the credentials.withExpiration
(Date expiration) The date at which these credentials will expire.withSecretKey
(String secretKey) The Secret Access Key portion of the credentialswithSessionToken
(String sessionToken) The Session Token portion of the credentials
-
Constructor Details
-
Credentials
public Credentials()
-
-
Method Details
-
setAccessKeyId
The Access Key portion of the credentials.
- Parameters:
accessKeyId
- The Access Key portion of the credentials.
-
getAccessKeyId
The Access Key portion of the credentials.
- Returns:
- The Access Key portion of the credentials.
-
withAccessKeyId
The Access Key portion of the credentials.
- Parameters:
accessKeyId
- The Access Key portion of the credentials.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSecretKey
The Secret Access Key portion of the credentials
- Parameters:
secretKey
- The Secret Access Key portion of the credentials
-
getSecretKey
The Secret Access Key portion of the credentials
- Returns:
- The Secret Access Key portion of the credentials
-
withSecretKey
The Secret Access Key portion of the credentials
- Parameters:
secretKey
- The Secret Access Key portion of the credentials- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSessionToken
The Session Token portion of the credentials
- Parameters:
sessionToken
- The Session Token portion of the credentials
-
getSessionToken
The Session Token portion of the credentials
- Returns:
- The Session Token portion of the credentials
-
withSessionToken
The Session Token portion of the credentials
- Parameters:
sessionToken
- The Session Token portion of the credentials- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setExpiration
The date at which these credentials will expire.
- Parameters:
expiration
- The date at which these credentials will expire.
-
getExpiration
The date at which these credentials will expire.
- Returns:
- The date at which these credentials will expire.
-
withExpiration
The date at which these credentials will expire.
- Parameters:
expiration
- The date at which these credentials will expire.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-