public enum CannedAccessPolicy extends Enum<CannedAccessPolicy>
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final CannedAccessPolicy PRIVATE
public static final CannedAccessPolicy PUBLIC_READ
public static final CannedAccessPolicy PUBLIC_READ_WRITE
public static final CannedAccessPolicy AUTHENTICATED_READ
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 nameNullPointerException
- 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.Copyright © 2009-2013 jclouds. All Rights Reserved.