com.netease.cloud.services.nos.model
public enum CannedAccessControlList extends Enum<CannedAccessControlList>
Canned access control lists are commonly used access control lists (ACL) that can be used as a shortcut when applying an access control list to Nos buckets and objects. Only a few commonly used configurations are available, but they offer an alternative to manually creating a custom ACL. If more specific access control is desired, users can create a custom
Enum Constant and Description |
---|
Private
This is the default access control policy for any new buckets or objects.
|
PublicRead
If this policy is used on an object, it can be read from a browser
without authentication.
|
Modifier and Type | Method and Description |
---|---|
String |
toString()
Returns the Nos x-nos-acl header value for this canned acl.
|
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 Private
This is the default access control policy for any new buckets or objects.
public static final CannedAccessControlList PublicRead
If this policy is used on an object, it can be read from a browser without authentication.
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>
Copyright © 2017. All Rights Reserved.