Credentials set as JVM system properties

Set the JVM system properties aws.accessKeyId to define the access key and aws.secretKey to define the secret key.

These properties can be set on startup or programmatically and are used by the AmazonS3Client when the default constructor is used.


Example: Set system properties then open an S3 connection using those properties

System.setProperty("aws.accessKeyId", "lDrDjH0D45hQivu6FNlwQ");
System.setProperty("aws.secretKey", "bHp5DOjg0HHJrGK7h3ejEqRDnVmWZK03T4lstel6");

AmazonS3 s3Client = new AmazonS3Client();