com.amazonaws.auth
Class BasicSessionCredentials

java.lang.Object
  extended by com.amazonaws.auth.BasicSessionCredentials
All Implemented Interfaces:
AWSCredentials, AWSSessionCredentials

public class BasicSessionCredentials
extends Object
implements AWSSessionCredentials

Simple session credentials with keys and session token.


Constructor Summary
BasicSessionCredentials(String awsAccessKey, String awsSecretKey, String sessionToken)
           
 
Method Summary
 String getAWSAccessKeyId()
          Returns the AWS access key ID for this credentials object.
 String getAWSSecretKey()
          Returns the AWS secret access key for this credentials object.
 String getSessionToken()
          Returns the session token for this session.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicSessionCredentials

public BasicSessionCredentials(String awsAccessKey,
                               String awsSecretKey,
                               String sessionToken)
Method Detail

getAWSAccessKeyId

public String getAWSAccessKeyId()
Description copied from interface: AWSCredentials
Returns the AWS access key ID for this credentials object.

Specified by:
getAWSAccessKeyId in interface AWSCredentials
Returns:
The AWS access key ID for this credentials object.

getAWSSecretKey

public String getAWSSecretKey()
Description copied from interface: AWSCredentials
Returns the AWS secret access key for this credentials object.

Specified by:
getAWSSecretKey in interface AWSCredentials
Returns:
The AWS secret access key for this credentials object.

getSessionToken

public String getSessionToken()
Description copied from interface: AWSSessionCredentials
Returns the session token for this session.

Specified by:
getSessionToken in interface AWSSessionCredentials


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.