util.amazon
Class S3CodeSamples
java.lang.Object
util.amazon.S3CodeSamples
- public class S3CodeSamples
- extends java.lang.Object
Method Summary |
static org.jets3t.service.security.AWSCredentials |
loadAWSCredentials()
Loads AWS Credentials from the file samples.properties
(SAMPLES_PROPERTIES_NAME ) that must be available in the
classpath, and must contain settings awsAccessKey and
awsSecretKey. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SAMPLES_PROPERTIES_NAME
public static final java.lang.String SAMPLES_PROPERTIES_NAME
- See Also:
- Constant Field Values
AWS_ACCESS_KEY_PROPERTY_NAME
public static final java.lang.String AWS_ACCESS_KEY_PROPERTY_NAME
- See Also:
- Constant Field Values
AWS_SECRET_KEY_PROPERTY_NAME
public static final java.lang.String AWS_SECRET_KEY_PROPERTY_NAME
- See Also:
- Constant Field Values
S3CodeSamples
public S3CodeSamples()
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
loadAWSCredentials
public static org.jets3t.service.security.AWSCredentials loadAWSCredentials()
throws java.io.IOException
- Loads AWS Credentials from the file samples.properties
(
SAMPLES_PROPERTIES_NAME
) that must be available in the
classpath, and must contain settings awsAccessKey and
awsSecretKey.
- Returns:
- the AWS credentials loaded from the samples properties file.
- Throws:
java.io.IOException