public class Credentials
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Credentials for the provided identity ID.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
accessKeyId
The Access Key portion of the credentials.
|
private java.util.Date |
expiration
The date at which these credentials will expire.
|
private java.lang.String |
secretKey
The Secret Access Key portion of the credentials
|
private java.lang.String |
sessionToken
The Session Token portion of the credentials
|
Constructor and Description |
---|
Credentials() |
Modifier and Type | Method and Description |
---|---|
Credentials |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAccessKeyId()
The Access Key portion of the credentials.
|
java.util.Date |
getExpiration()
The date at which these credentials will expire.
|
java.lang.String |
getSecretKey()
The Secret Access Key portion of the credentials
|
java.lang.String |
getSessionToken()
The Session Token portion of the credentials
|
int |
hashCode() |
void |
setAccessKeyId(java.lang.String accessKeyId)
The Access Key portion of the credentials.
|
void |
setExpiration(java.util.Date expiration)
The date at which these credentials will expire.
|
void |
setSecretKey(java.lang.String secretKey)
The Secret Access Key portion of the credentials
|
void |
setSessionToken(java.lang.String sessionToken)
The Session Token portion of the credentials
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Credentials |
withAccessKeyId(java.lang.String accessKeyId)
The Access Key portion of the credentials.
|
Credentials |
withExpiration(java.util.Date expiration)
The date at which these credentials will expire.
|
Credentials |
withSecretKey(java.lang.String secretKey)
The Secret Access Key portion of the credentials
|
Credentials |
withSessionToken(java.lang.String sessionToken)
The Session Token portion of the credentials
|
private java.lang.String accessKeyId
The Access Key portion of the credentials.
private java.lang.String secretKey
The Secret Access Key portion of the credentials
private java.lang.String sessionToken
The Session Token portion of the credentials
private java.util.Date expiration
The date at which these credentials will expire.
public void setAccessKeyId(java.lang.String accessKeyId)
The Access Key portion of the credentials.
accessKeyId
- The Access Key portion of the credentials.public java.lang.String getAccessKeyId()
The Access Key portion of the credentials.
public Credentials withAccessKeyId(java.lang.String accessKeyId)
The Access Key portion of the credentials.
accessKeyId
- The Access Key portion of the credentials.public void setSecretKey(java.lang.String secretKey)
The Secret Access Key portion of the credentials
secretKey
- The Secret Access Key portion of the credentialspublic java.lang.String getSecretKey()
The Secret Access Key portion of the credentials
public Credentials withSecretKey(java.lang.String secretKey)
The Secret Access Key portion of the credentials
secretKey
- The Secret Access Key portion of the credentialspublic void setSessionToken(java.lang.String sessionToken)
The Session Token portion of the credentials
sessionToken
- The Session Token portion of the credentialspublic java.lang.String getSessionToken()
The Session Token portion of the credentials
public Credentials withSessionToken(java.lang.String sessionToken)
The Session Token portion of the credentials
sessionToken
- The Session Token portion of the credentialspublic void setExpiration(java.util.Date expiration)
The date at which these credentials will expire.
expiration
- The date at which these credentials will expire.public java.util.Date getExpiration()
The date at which these credentials will expire.
public Credentials withExpiration(java.util.Date expiration)
The date at which these credentials will expire.
expiration
- The date at which these credentials will expire.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Credentials clone()
clone
in class java.lang.Object