|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectcom.amazonaws.auth.STSSessionCredentials
public class STSSessionCredentials
Session credentials periodically refreshed by AWS SecurityTokenService
| Field Summary | |
|---|---|
static int |
DEFAULT_DURATION_SECONDS
|
| Constructor Summary | |
|---|---|
STSSessionCredentials(AWSCredentials credentials)
Create a new credentials object that will periodically and automatically obtain a session from STS. |
|
STSSessionCredentials(AWSCredentials credentials,
int sessionDurationSeconds)
Create a new credentials object that will periodically and automatically obtain a session from STS. |
|
STSSessionCredentials(AWSSecurityTokenService stsClient)
Create a new credentials object that will periodically and automatically obtain a session from STS, using a preconfigured STS client. |
|
STSSessionCredentials(AWSSecurityTokenService stsClient,
int sessionDuratinSeconds)
Create a new credentials object that will periodically and automatically obtain a session from STS, using a preconfigured STS client. |
|
| Method Summary | |
|---|---|
String |
getAWSAccessKeyId()
Returns the AWS access key for the current STS session, beginning a new one if necessary. |
String |
getAWSSecretKey()
Returns the AWS secret key for the current STS session, beginning a new one if necessary. |
AWSSessionCredentials |
getImmutableCredentials()
Returns immutable session credentials for this session, beginning a new one if necessary. |
String |
getSessionToken()
Returns the session token for the current STS session, beginning a new one if necessary. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_DURATION_SECONDS
| Constructor Detail |
|---|
public STSSessionCredentials(AWSCredentials credentials)
credentials - Primary AWS account credentials.
public STSSessionCredentials(AWSCredentials credentials,
int sessionDurationSeconds)
credentials - Primary AWS account credentials.sessionDurationSeconds - The duration, in seconds, for each session to last.public STSSessionCredentials(AWSSecurityTokenService stsClient)
stsClient - A pre-configured STS client from which to get credentials.
public STSSessionCredentials(AWSSecurityTokenService stsClient,
int sessionDuratinSeconds)
stsClient - A pre-configured STS client from which to get credentials.settings - Session settings for all sessions created| Method Detail |
|---|
public String getAWSAccessKeyId()
Clients are encouraged to call the atomic
RenewableAWSSessionCredentials#getImmutableCredentials() as a proxy to this method.
getAWSAccessKeyId in interface AWSCredentialspublic String getAWSSecretKey()
Clients are encouraged to call the atomic
RenewableAWSSessionCredentials#getImmutableCredentials() as a proxy to this method.
getAWSSecretKey in interface AWSCredentialspublic String getSessionToken()
Clients are encouraged to call the atomic
RenewableAWSSessionCredentials#getImmutableCredentials() as a proxy to this method.
getSessionToken in interface AWSSessionCredentialspublic AWSSessionCredentials getImmutableCredentials()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||