org.jets3t.service.security
Class AWSSessionCredentials

java.lang.Object
  extended by org.jets3t.service.security.ProviderCredentials
      extended by org.jets3t.service.security.AWSCredentials
          extended by org.jets3t.service.security.AWSSessionCredentials

public class AWSSessionCredentials
extends AWSCredentials

Class to contain the temporary (session-based) Amazon Web Services (AWS) credentials of a user.


Field Summary
protected  java.lang.String sessionToken
           
 
Fields inherited from class org.jets3t.service.security.ProviderCredentials
accessKey, CREDENTIALS_STORAGE_VERSION, friendlyName, log, secretKey, V2_KEYS_DELIMITER, V3_KEYS_DELIMITER
 
Constructor Summary
AWSSessionCredentials(java.lang.String awsAccessKey, java.lang.String awsSecretAccessKey, java.lang.String sessionToken)
          Construct credentials, without a human-friendly name.
AWSSessionCredentials(java.lang.String awsAccessKey, java.lang.String awsSecretAccessKey, java.lang.String sessionToken, java.lang.String friendlyName)
          Construct credentials, and associate them with a human-friendly name.
 
Method Summary
 java.lang.String getSessionToken()
           
protected  java.lang.String getTypeName()
           
 
Methods inherited from class org.jets3t.service.security.AWSCredentials
getVersionPrefix, main
 
Methods inherited from class org.jets3t.service.security.ProviderCredentials
getAccessKey, getDataToEncrypt, getFriendlyName, getLogString, getSecretKey, hasFriendlyName, load, load, save, save, save, save
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sessionToken

protected java.lang.String sessionToken
Constructor Detail

AWSSessionCredentials

public AWSSessionCredentials(java.lang.String awsAccessKey,
                             java.lang.String awsSecretAccessKey,
                             java.lang.String sessionToken,
                             java.lang.String friendlyName)
Construct credentials, and associate them with a human-friendly name.

Parameters:
awsAccessKey - AWS access key for an Amazon S3 account.
awsSecretAccessKey - AWS secret key for an Amazon S3 account.
sessionToken - AWS session token for temporary/session-based account credentials.
friendlyName - a name identifying the owner of the credentials, such as 'James'.

AWSSessionCredentials

public AWSSessionCredentials(java.lang.String awsAccessKey,
                             java.lang.String awsSecretAccessKey,
                             java.lang.String sessionToken)
Construct credentials, without a human-friendly name.

Parameters:
awsAccessKey - AWS access key for an Amazon S3 account.
awsSecretAccessKey - AWS secret key for an Amazon S3 account.
sessionToken - AWS session token for temporary/session-based account credentials.
Method Detail

getSessionToken

public java.lang.String getSessionToken()
Returns:
The AWS session token for temporary/session-based account credentials.

getTypeName

protected java.lang.String getTypeName()
Overrides:
getTypeName in class AWSCredentials
Returns:
string representing this credential type's name (for serialization)