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 Qcloud COS 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 AccessControlList.
AccessControlList| 枚举常量和说明 |
|---|
Default
inherit from bucket permission
|
Private
Specifies the owner is granted
Permission.FullControl. |
PublicRead
Specifies the owner is granted
Permission.FullControl and the
GroupGrantee.AllUsers group grantee is granted
Permission.Read access. |
PublicReadWrite
Specifies the owner is granted
Permission.FullControl and the
GroupGrantee.AllUsers group grantee is granted
Permission.Read and Permission.Write access. |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
toString()
Returns the Qcloud COS x-cos-acl header value for this canned acl.
|
static CannedAccessControlList |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static CannedAccessControlList[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final CannedAccessControlList Private
Permission.FullControl. No one else has access rights.
This is the default access control policy for any new buckets or objects.
public static final CannedAccessControlList PublicRead
Permission.FullControl and the
GroupGrantee.AllUsers group grantee is granted
Permission.Read access.
If this policy is used on an object, it can be read from a browser without authentication.
public static final CannedAccessControlList PublicReadWrite
Permission.FullControl and the
GroupGrantee.AllUsers group grantee is granted
Permission.Read and Permission.Write access.
This access policy is not recommended for general use.
public static final CannedAccessControlList Default
public static CannedAccessControlList[] values()
for (CannedAccessControlList c : CannedAccessControlList.values()) System.out.println(c);
public static CannedAccessControlList valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String toString()
toString 在类中 Enum<CannedAccessControlList>Copyright © 2021. All rights reserved.