All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.qcloud.cos.model.CannedAccessControlList Maven / Gradle / Ivy

The newest version!
package com.qcloud.cos.model;

/**
 * Specifies constants defining a canned access control list.
 * 

* 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 {@link AccessControlList}. *

* * @see AccessControlList */ public enum CannedAccessControlList { /** * Specifies the owner is granted {@link Permission#FullControl}. No one else has access rights. *

* This is the default access control policy for any new buckets or objects. *

*/ Private("private"), /** * Specifies the owner is granted {@link Permission#FullControl} and the * {@link GroupGrantee#AllUsers} group grantee is granted * {@link Permission#Read} access. *

* If this policy is used on an object, it can be read from a browser without * authentication. *

*/ PublicRead("public-read"), /** * Specifies the owner is granted {@link Permission#FullControl} and the * {@link GroupGrantee#AllUsers} group grantee is granted * {@link Permission#Read} and {@link Permission#Write} access. *

* This access policy is not recommended for general use. *

*/ PublicReadWrite("public-read-write"); /** The Qcloud COS x-cos-acl header value representing the canned acl */ private final String cannedAclHeader; private CannedAccessControlList(String cannedAclHeader) { this.cannedAclHeader = cannedAclHeader; } /** * Returns the Qcloud COS x-cos-acl header value for this canned acl. */ public String toString() { return cannedAclHeader; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy