|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.securitytoken.model.Credentials
public class Credentials
AWS credentials for API authentication.
Constructor Summary | |
---|---|
Credentials()
Default constructor for a new Credentials object. |
|
Credentials(String accessKeyId,
String secretAccessKey,
String sessionToken,
Date expiration)
Constructs a new Credentials object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getAccessKeyId()
AccessKeyId ID that identifies the temporary credentials. |
Date |
getExpiration()
The date on which these credentials expire. |
String |
getSecretAccessKey()
The Secret Access Key to sign requests. |
String |
getSessionToken()
The security token that users must pass to the service API to use the temporary credentials. |
int |
hashCode()
|
void |
setAccessKeyId(String accessKeyId)
AccessKeyId ID that identifies the temporary credentials. |
void |
setExpiration(Date expiration)
The date on which these credentials expire. |
void |
setSecretAccessKey(String secretAccessKey)
The Secret Access Key to sign requests. |
void |
setSessionToken(String sessionToken)
The security token that users must pass to the service API to use the temporary credentials. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
Credentials |
withAccessKeyId(String accessKeyId)
AccessKeyId ID that identifies the temporary credentials. |
Credentials |
withExpiration(Date expiration)
The date on which these credentials expire. |
Credentials |
withSecretAccessKey(String secretAccessKey)
The Secret Access Key to sign requests. |
Credentials |
withSessionToken(String sessionToken)
The security token that users must pass to the service API to use the temporary credentials. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Credentials()
public Credentials(String accessKeyId, String secretAccessKey, String sessionToken, Date expiration)
accessKeyId
- AccessKeyId ID that identifies the temporary
credentials.secretAccessKey
- The Secret Access Key to sign requests.sessionToken
- The security token that users must pass to the
service API to use the temporary credentials.expiration
- The date on which these credentials expire.Method Detail |
---|
public String getAccessKeyId()
Constraints:
Length: 16 - 32
Pattern: [\w]*
public void setAccessKeyId(String accessKeyId)
Constraints:
Length: 16 - 32
Pattern: [\w]*
accessKeyId
- AccessKeyId ID that identifies the temporary credentials.public Credentials withAccessKeyId(String accessKeyId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 16 - 32
Pattern: [\w]*
accessKeyId
- AccessKeyId ID that identifies the temporary credentials.
public String getSecretAccessKey()
public void setSecretAccessKey(String secretAccessKey)
secretAccessKey
- The Secret Access Key to sign requests.public Credentials withSecretAccessKey(String secretAccessKey)
Returns a reference to this object so that method calls can be chained together.
secretAccessKey
- The Secret Access Key to sign requests.
public String getSessionToken()
public void setSessionToken(String sessionToken)
sessionToken
- The security token that users must pass to the service API to use the
temporary credentials.public Credentials withSessionToken(String sessionToken)
Returns a reference to this object so that method calls can be chained together.
sessionToken
- The security token that users must pass to the service API to use the
temporary credentials.
public Date getExpiration()
public void setExpiration(Date expiration)
expiration
- The date on which these credentials expire.public Credentials withExpiration(Date expiration)
Returns a reference to this object so that method calls can be chained together.
expiration
- The date on which these credentials expire.
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |