Class Credentials
- java.lang.Object
-
- com.amazonaws.services.cognitoidentity.model.Credentials
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Credentials extends Object implements Serializable, Cloneable
Credentials for the provided identity ID.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Credentials()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Credentials
clone()
boolean
equals(Object obj)
String
getAccessKeyId()
The Access Key portion of the credentials.Date
getExpiration()
The date at which these credentials will expire.String
getSecretKey()
The Secret Access Key portion of the credentialsString
getSessionToken()
The 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 credentialsString
toString()
Returns a string representation of this object; useful for testing and debugging.Credentials
withAccessKeyId(String accessKeyId)
The Access Key portion of the credentials.Credentials
withExpiration(Date expiration)
The date at which these credentials will expire.Credentials
withSecretKey(String secretKey)
The Secret Access Key portion of the credentialsCredentials
withSessionToken(String sessionToken)
The Session Token portion of the credentials
-
-
-
Method Detail
-
setAccessKeyId
public void setAccessKeyId(String accessKeyId)
The Access Key portion of the credentials.
- Parameters:
accessKeyId
- The Access Key portion of the credentials.
-
getAccessKeyId
public String getAccessKeyId()
The Access Key portion of the credentials.
- Returns:
- The Access Key portion of the credentials.
-
withAccessKeyId
public Credentials withAccessKeyId(String accessKeyId)
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
public void setSecretKey(String secretKey)
The Secret Access Key portion of the credentials
- Parameters:
secretKey
- The Secret Access Key portion of the credentials
-
getSecretKey
public String getSecretKey()
The Secret Access Key portion of the credentials
- Returns:
- The Secret Access Key portion of the credentials
-
withSecretKey
public Credentials withSecretKey(String secretKey)
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
public void setSessionToken(String sessionToken)
The Session Token portion of the credentials
- Parameters:
sessionToken
- The Session Token portion of the credentials
-
getSessionToken
public String getSessionToken()
The Session Token portion of the credentials
- Returns:
- The Session Token portion of the credentials
-
withSessionToken
public Credentials withSessionToken(String sessionToken)
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
public void setExpiration(Date expiration)
The date at which these credentials will expire.
- Parameters:
expiration
- The date at which these credentials will expire.
-
getExpiration
public Date getExpiration()
The date at which these credentials will expire.
- Returns:
- The date at which these credentials will expire.
-
withExpiration
public Credentials withExpiration(Date expiration)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public Credentials clone()
-
-