com.aliyun.oss.model

## 类 AccessControlList

- java.lang.Object
- - com.aliyun.oss.model.GenericResult
  - - com.aliyun.oss.model.AccessControlList

- 所有已实现的接口:
    Serializable

      public class AccessControlList
      extends GenericResult
      implements Serializable

  The class encapsulates the access control list (ACL) information of OSS. It includes an owner and a group of <`Grantee`,`Permission`> pair.
  另请参阅:
    序列化表格

- - ### 构造器概要

    构造器
    构造器和说明
    `AccessControlList()`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `CannedAccessControlList` | `getCannedACL()` Gets the canned ACL.
    `Set<Grant>` | `getGrants()` 已过时。
    `Owner` | `getOwner()` Gets `Owner`.
    `void` | `grantPermission(Grantee grantee, Permission permission)` Grants the `Grantee` with the `Permission`.
    `void` | `revokeAllPermissions(Grantee grantee)` Revokes the `Grantee` all its permissions.
    `void` | `setCannedACL(CannedAccessControlList cannedACL)` Sets the ACL.
    `void` | `setOwner(Owner owner)` Sets the `Owner`.
    `String` | `toString()` Serializes the ACL and the owner information to string()).

    - ### 从类继承的方法 com.aliyun.oss.model.GenericResult

      `getClientCRC, getRequestId, getResponse, getServerCRC, setClientCRC, setRequestId, setResponse, setServerCRC`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### 构造器详细资料

    - #### AccessControlList

          public AccessControlList()

  - ### 方法详细资料

    - #### getOwner

          public Owner getOwner()

      Gets `Owner`.
      返回:
        The `Owner` instance.

    - #### setOwner

          public void setOwner(Owner owner)

      Sets the `Owner`.
      参数:
        `owner` - `Owner` instance,

    - #### grantPermission

          public void grantPermission(Grantee grantee,
                             Permission permission)

      Grants the `Grantee` with the `Permission`. For now the Grantee must be `GroupGrantee.AllUsers`.
      参数:
        `grantee` - The grantee, it must be `GroupGrantee.AllUsers` for now.
        `permission` - The permission defined in `Permission`.

    - #### revokeAllPermissions

          public void revokeAllPermissions(Grantee grantee)

      Revokes the `Grantee` all its permissions. For now the Grantee must be `GroupGrantee.AllUsers`.
      参数:
        `grantee` - The grantee, it must be `GroupGrantee.AllUsers` for now.

    - #### getGrants

          @Deprecated
          public Set<Grant> getGrants()

      已过时。
      Gets all `Grant` instances, each `Grant` instance specifies a `Grantee` and its `Permission`.
      返回:
        The set of `Grant`.

    - #### getCannedACL

          public CannedAccessControlList getCannedACL()

      Gets the canned ACL.
      返回:
        the canned ACL.

    - #### setCannedACL

          public void setCannedACL(CannedAccessControlList cannedACL)

      Sets the ACL.
      参数:
        `cannedACL` -

    - #### toString

          public String toString()

      Serializes the ACL and the owner information to string()). It does not include the `Grant` information for now.
      覆盖:
        `toString` 在类中 `Object`

Copyright © 2020. All Rights Reserved.