public class Credentials extends Object implements Serializable
Credentials for the provided identity ID.
Constructor and Description |
---|
Credentials() |
Modifier and Type | Method and Description |
---|---|
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 credentials
|
String |
getSessionToken()
The Session Token portion of the credentials
|
int |
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 credentials
|
void |
setSessionToken(String sessionToken)
The Session Token portion of the credentials
|
String |
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 credentials
|
Credentials |
withSessionToken(String sessionToken)
The Session Token portion of the credentials
|
public String getAccessKeyId()
The Access Key portion of the credentials.
The Access Key portion of the credentials.
public void setAccessKeyId(String accessKeyId)
The Access Key portion of the credentials.
accessKeyId
- The Access Key portion of the credentials.
public Credentials withAccessKeyId(String accessKeyId)
The Access Key portion of the credentials.
Returns a reference to this object so that method calls can be chained together.
accessKeyId
- The Access Key portion of the credentials.
public String getSecretKey()
The Secret Access Key portion of the credentials
The Secret Access Key portion of the credentials
public void setSecretKey(String secretKey)
The Secret Access Key portion of the credentials
secretKey
- The Secret Access Key portion of the credentials
public Credentials withSecretKey(String secretKey)
The Secret Access Key portion of the credentials
Returns a reference to this object so that method calls can be chained together.
secretKey
- The Secret Access Key portion of the credentials
public String getSessionToken()
The Session Token portion of the credentials
The Session Token portion of the credentials
public void setSessionToken(String sessionToken)
The Session Token portion of the credentials
sessionToken
- The Session Token portion of the credentials
public Credentials withSessionToken(String sessionToken)
The Session Token portion of the credentials
Returns a reference to this object so that method calls can be chained together.
sessionToken
- The Session Token portion of the credentials
public Date getExpiration()
The date at which these credentials will expire.
The date at which these credentials will expire.
public void setExpiration(Date expiration)
The date at which these credentials will expire.
expiration
- The date at which these credentials will expire.
public Credentials withExpiration(Date expiration)
The date at which these credentials will expire.
Returns a reference to this object so that method calls can be chained together.
expiration
- The date at which these credentials will expire.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2018. All rights reserved.