public class S3UploadPolicy extends Object
Constructor and Description |
---|
S3UploadPolicy(String awsAccessKeyId,
String awsSecretKey,
String bucketName,
String prefix,
int expireInMinutes)
Creates a new S3 upload policy object from the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
String |
getPolicySignature()
Policy signature in base64 format Use signature generated by this method
for passing to EC2 bunding calls along with policy.
|
String |
getPolicyString()
Base64 representation of the serialized policy.
|
public S3UploadPolicy(String awsAccessKeyId, String awsSecretKey, String bucketName, String prefix, int expireInMinutes)
awsAccessKeyId
- The AWS access key ID for the S3 bucket the bundling artifacts
should be stored in.awsSecretKey
- The AWS secret key for the specified access key.bucketName
- The name of the bucket to store the bundling artifacts in.prefix
- The prefix for the bundling artifacts.expireInMinutes
- The number of minutes before the upload policy expires and is
unable to be used.public String getPolicyString()
public String getPolicySignature()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.