public class AWSCredentials extends ProviderCredentials
accessKey, CREDENTIALS_STORAGE_VERSION, friendlyName, log, secretKey, V2_KEYS_DELIMITER, V3_KEYS_DELIMITER
Constructor and Description |
---|
AWSCredentials(java.lang.String awsAccessKey,
java.lang.String awsSecretAccessKey)
Construct credentials.
|
AWSCredentials(java.lang.String awsAccessKey,
java.lang.String awsSecretAccessKey,
java.lang.String friendlyName)
Construct credentials, and associate them with a human-friendly name.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getTypeName() |
java.lang.String |
getVersionPrefix() |
static void |
main(java.lang.String[] args)
Console utility to store AWS credentials information in an encrypted file in the toolkit's
default preferences directory.
|
getAccessKey, getDataToEncrypt, getFriendlyName, getLogString, getSecretKey, hasFriendlyName, load, load, save, save, save, save
public AWSCredentials(java.lang.String awsAccessKey, java.lang.String awsSecretAccessKey)
awsAccessKey
- AWS access key for an Amazon S3 account.awsSecretAccessKey
- AWS secret key for an Amazon S3 account.public AWSCredentials(java.lang.String awsAccessKey, java.lang.String awsSecretAccessKey, java.lang.String friendlyName)
awsAccessKey
- AWS access key for an Amazon S3 account.awsSecretAccessKey
- AWS secret key for an Amazon S3 account.friendlyName
- a name identifying the owner of the credentials, such as 'James'.protected java.lang.String getTypeName()
getTypeName
in class ProviderCredentials
public java.lang.String getVersionPrefix()
getVersionPrefix
in class ProviderCredentials
public static void main(java.lang.String[] args) throws java.lang.Exception
This class can be run from the command line as:
java org.jets3t.service.security.AWSCredentials <friendlyName> <credentialsFilename> <algorithm>When run it will prompt for the user's AWS access key,secret key and encryption password. It will then encode into the specified credentials file.
args
- java.lang.Exception