public class AWSSessionCredentials extends AWSCredentials
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
sessionToken |
accessKey, CREDENTIALS_STORAGE_VERSION, friendlyName, log, secretKey, V2_KEYS_DELIMITER, V3_KEYS_DELIMITER
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSessionToken() |
protected java.lang.String |
getTypeName() |
getVersionPrefix, main
getAccessKey, getDataToEncrypt, getFriendlyName, getLogString, getSecretKey, hasFriendlyName, load, load, save, save, save, save
public AWSSessionCredentials(java.lang.String awsAccessKey, java.lang.String awsSecretAccessKey, java.lang.String sessionToken, java.lang.String friendlyName)
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'.public AWSSessionCredentials(java.lang.String awsAccessKey, java.lang.String awsSecretAccessKey, java.lang.String sessionToken)
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.public java.lang.String getSessionToken()
protected java.lang.String getTypeName()
getTypeName
in class AWSCredentials