| 程序包 | 说明 |
|---|---|
| com.qcloud.cos | |
| com.qcloud.cos.model |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
COS.setBucketAcl(String bucketName,
CannedAccessControlList acl)
Sets the
CannedAccessControlList for the specified bucket. |
void |
COSClient.setBucketAcl(String bucketName,
CannedAccessControlList acl) |
void |
COS.setObjectAcl(String bucketName,
String key,
CannedAccessControlList acl)
Sets the
CannedAccessControlList for the specified object. |
void |
COSClient.setObjectAcl(String bucketName,
String key,
CannedAccessControlList acl) |
| 限定符和类型 | 方法和说明 |
|---|---|
CannedAccessControlList |
AccessControlList.getCannedAccessControl()
according to the returned x-cos-acl header and grantList, to judge the bucket or object acl, the cases are below:
1. if the header returned x-cos-acl:default, return CannedAccessControlList.Default, only for object acl
2. if the body have AllUsers's Read or Write permission, combine it to decide bucket or object acl to
CannedAccessControlList.PublicReadWrite or CannedAccessControlList.PublicRead
3. for other cases, the object or bucket acl is CannedAccessControlList.Private
|
CannedAccessControlList |
CopyObjectRequest.getCannedAccessControlList()
Gets the canned ACL to use for the new, copied object.
|
CannedAccessControlList |
CreateBucketRequest.getCannedAcl()
Returns the optional Canned ACL to set for the new bucket.
|
CannedAccessControlList |
SetBucketAclRequest.getCannedAcl()
Returns the canned ACL to be applied to the specified bucket when this
request is executed.
|
CannedAccessControlList |
PutInstructionFileRequest.getCannedAcl()
Gets the optional pre-configured access control policy to use for the new object.
|
CannedAccessControlList |
SetObjectAclRequest.getCannedAcl()
Returns the canned ACL to be applied to the specified object when this request is executed.
|
CannedAccessControlList |
AbstractPutObjectRequest.getCannedAcl()
Gets the optional pre-configured access control policy to use for the new object.
|
CannedAccessControlList |
InitiateMultipartUploadRequest.getCannedACL()
Returns the optional canned Access Control List (ACL) to set permissions for the new object
created when the multipart upload is completed.
|
static CannedAccessControlList |
CannedAccessControlList.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static CannedAccessControlList[] |
CannedAccessControlList.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
CopyObjectRequest.setCannedAccessControlList(CannedAccessControlList cannedACL)
Sets the canned ACL to use for the newly copied object.
|
void |
CreateBucketRequest.setCannedAcl(CannedAccessControlList cannedAcl)
Sets the optional Canned ACL to set for the new bucket.
|
void |
PutInstructionFileRequest.setCannedAcl(CannedAccessControlList cannedAcl)
Sets the optional pre-configured access control policy to use for the new object.
|
void |
AbstractPutObjectRequest.setCannedAcl(CannedAccessControlList cannedAcl)
Sets the optional pre-configured access control policy to use for the new object.
|
void |
InitiateMultipartUploadRequest.setCannedACL(CannedAccessControlList cannedACL)
Sets the optional canned Access Control List (ACL) to set permissions for the new object
created when the multipart upload is completed.
|
CopyObjectRequest |
CopyObjectRequest.withCannedAccessControlList(CannedAccessControlList cannedACL)
Sets the canned ACL to use for the newly copied object, and returns this
CopyObjectRequest, enabling additional method calls to be chained together. |
CreateBucketRequest |
CreateBucketRequest.withCannedAcl(CannedAccessControlList cannedAcl)
Sets the optional Canned ACL to set for the new bucket, and returns this updated object so
that additional method calls can be chained together.
|
PutObjectRequest |
PutObjectRequest.withCannedAcl(CannedAccessControlList cannedAcl) |
PutInstructionFileRequest |
PutInstructionFileRequest.withCannedAcl(CannedAccessControlList cannedAcl)
Sets the optional pre-configured access control policy to use for the new object.
|
InitiateMultipartUploadRequest |
InitiateMultipartUploadRequest.withCannedACL(CannedAccessControlList acl)
Sets the optional canned Access Control List (ACL) to set permissions for the new object
created when the multipart upload is completed.
|
<T extends AbstractPutObjectRequest> |
AbstractPutObjectRequest.withCannedAcl(CannedAccessControlList cannedAcl)
Sets the optional pre-configured access control policy to use for the new object.
|
| 构造器和说明 |
|---|
SetBucketAclRequest(String bucketName,
CannedAccessControlList acl)
Constructs a new SetBucketAclRequest object, ready to set the specified
canned ACL on the specified bucket when this request is executed.
|
SetObjectAclRequest(String bucketName,
String key,
CannedAccessControlList acl)
Constructs a new SetObjectAclRequest object, ready to set the specified ACL on the specified
object when this request is executed.
|
Copyright © 2021. All rights reserved.