util.amazon
Class S3CodeSamples

java.lang.Object
  extended byutil.amazon.S3CodeSamples

public class S3CodeSamples
extends java.lang.Object


Field Summary
static java.lang.String AWS_ACCESS_KEY_PROPERTY_NAME
           
static java.lang.String AWS_SECRET_KEY_PROPERTY_NAME
           
static java.lang.String SAMPLES_PROPERTIES_NAME
           
 
Constructor Summary
S3CodeSamples()
           
 
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
 

Field Detail

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
Constructor Detail

S3CodeSamples

public S3CodeSamples()
Method Detail

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