public enum CannedAccessControlList extends Enum<CannedAccessControlList>
It defines some common permissions.
Enum Constant and Description |
---|
Default
This is only for object, means the permission inherits the bucket's
permission.
|
Private
The owner has the
Permission.FullControl , other
GroupGrantee.AllUsers does not have access. |
PublicRead
The owner has the
Permission.FullControl , other
GroupGrantee.AllUsers have read-only access. |
PublicReadWrite
Both the owner and
GroupGrantee.AllUsers have
Permission.FullControl . |
Modifier and Type | Method and Description |
---|---|
static CannedAccessControlList |
parse(String acl) |
String |
toString() |
static CannedAccessControlList |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CannedAccessControlList[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CannedAccessControlList Default
public static final CannedAccessControlList Private
Permission.FullControl
, other
GroupGrantee.AllUsers
does not have access.public static final CannedAccessControlList PublicRead
Permission.FullControl
, other
GroupGrantee.AllUsers
have read-only access.public static final CannedAccessControlList PublicReadWrite
GroupGrantee.AllUsers
have
Permission.FullControl
. It's not safe and thus not recommended.public static CannedAccessControlList[] values()
for (CannedAccessControlList c : CannedAccessControlList.values()) System.out.println(c);
public static CannedAccessControlList 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<CannedAccessControlList>
public static CannedAccessControlList parse(String acl)
Copyright © 2021. All Rights Reserved.