|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.ec2.util.S3UploadPolicy
public class S3UploadPolicy
This class represents S3 upload policy. Policy string representation and signature to be used within EC2 bundling API.
Constructor Summary | |
---|---|
S3UploadPolicy(String awsAccessKeyId,
String awsSecretKey,
String bucketName,
String prefix,
int expireInMinutes)
Creates a new S3 upload policy object from the specified parameters. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
public String getPolicyString()
public String getPolicySignature()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |