|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jets3t.service.security.ProviderCredentials
org.jets3t.service.security.AWSCredentials
public class AWSCredentials
Class to contain the Amazon Web Services (AWS) credentials of a user. This class also includes utility methods to store credentials to password-encrypted files, and retrieve credentials from these files.
| Constructor Summary | |
|---|---|
AWSCredentials(String awsAccessKey,
String awsSecretAccessKey)
Construct credentials. |
|
AWSCredentials(String awsAccessKey,
String awsSecretAccessKey,
String friendlyName)
Construct credentials, and associate them with a human-friendly name. |
|
| Method Summary | |
|---|---|
String |
getVersionPrefix()
|
static void |
main(String[] args)
Console utility to store AWS credentials information in an encrypted file in the toolkit's default preferences directory. |
| Methods inherited from class org.jets3t.service.security.ProviderCredentials |
|---|
getAccessKey, getFriendlyName, getLogString, getSecretKey, hasFriendlyName, load, load, save, save, save, save |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AWSCredentials(String awsAccessKey,
String awsSecretAccessKey)
awsAccessKey - AWS access key for an Amazon S3 account.awsSecretAccessKey - AWS secret key for an Amazon S3 account.
public AWSCredentials(String awsAccessKey,
String awsSecretAccessKey,
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'.| Method Detail |
|---|
public String getVersionPrefix()
public static void main(String[] args)
throws 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 -
Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||