|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<CannedAccessPolicy> org.jclouds.s3.domain.CannedAccessPolicy
public enum CannedAccessPolicy
Description from Amazon's documentation:
Because of restrictions in what can be sent via http headers, Amazon S3 supports the concept of canned access policies for REST. A canned access policy can be included with the x-amz-acl header as part of a PUT operation to provide shorthand representation of a full access policy. When Amazon S3 sees the x-amz-acl header as part of a PUT operation, it will assign the respective access policy to the resource created as a result of the PUT. If no x-amz-acl header is included with a PUT request, then the bucket or object is written with the private access control policy (even if, in the case of an object, the object already exists with some other pre-existing access control policy).
Enum Constant Summary | |
---|---|
AUTHENTICATED_READ
Owner gets FULL_CONTROL, and any identity authenticated as a registered Amazon S3 user is granted READ access. |
|
PRIVATE
Owner gets FULL_CONTROL. |
|
PUBLIC_READ
Owner gets FULL_CONTROL and the anonymous identity is granted READ access. |
|
PUBLIC_READ_WRITE
Owner gets FULL_CONTROL, the anonymous identity is granted READ and WRITE access. |
Method Summary | |
---|---|
static CannedAccessPolicy |
fromHeader(String capHeader)
|
String |
toString()
|
static CannedAccessPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static CannedAccessPolicy[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final CannedAccessPolicy PRIVATE
public static final CannedAccessPolicy PUBLIC_READ
public static final CannedAccessPolicy PUBLIC_READ_WRITE
public static final CannedAccessPolicy AUTHENTICATED_READ
Method Detail |
---|
public static CannedAccessPolicy[] values()
for (CannedAccessPolicy c : CannedAccessPolicy.values()) System.out.println(c);
public static CannedAccessPolicy valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<CannedAccessPolicy>
public static CannedAccessPolicy fromHeader(String capHeader)
capHeader
- The value of the x-amz-acl HTTP Header returned by S3 when an
object has a canned access policy.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |