use of com.aliyun.oss.model.AccessControlList in project aliyun-oss-java-sdk by aliyun.
the class BucketOperationsSample method doBucketACLOperations.
private static void doBucketACLOperations() {
System.out.println("Setting bucket ACL to " + CannedAccessControlList.PublicRead.toString() + "\n");
client.setBucketAcl(bucketName, CannedAccessControlList.PublicRead);
AccessControlList acl = client.getBucketAcl(bucketName);
System.out.println("Getting bucket ACL " + acl.toString() + "\n");
}
Aggregations