## Uses of Interface
com.holonplatform.auth.Permission

- Packages that use Permission
  Package | Description
  --- | ---
  com.holonplatform.auth |

- - ### Uses of Permission in com.holonplatform.auth

    Classes in com.holonplatform.auth with type parameters of type Permission
    Modifier and Type | Interface and Description
    --- | ---
    `interface` | `Authorizer<P extends Permission>` Authorizer is responsible for `Authentication` authorization control using `permissions`.

    Methods in com.holonplatform.auth with type parameters of type Permission
    Modifier and Type | Method and Description
    --- | ---
    `<P extends Permission> void` | Realm.`addAuthorizer(Authorizer<P> authorizer)` Add and `Authorizer` to support a specific `Permission` type
    `<P extends Permission> Realm.Builder` | Realm.Builder.`authorizer(Authorizer<P> authorizer)` Register given `Authorizer` in Realm.

    Methods in com.holonplatform.auth that return Permission
    Modifier and Type | Method and Description
    --- | ---
    `static Permission` | Permission.`create(String permission)` Create a default Permission implementation, using given `permission` String to represent permission authority.

    Methods in com.holonplatform.auth that return types with arguments of type Permission
    Modifier and Type | Method and Description
    --- | ---
    `static Authorizer<Permission>` | Authorizer.`create()` Create a default Authorizer.
    `Collection<Permission>` | Authentication.`getPermissions()` Set of `Permission`s granted to principal with this Authentication
    `Collection<Permission>` | Account.`getPermissions()` Optional permissions granted to account

    Methods in com.holonplatform.auth with parameters of type Permission
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | Authorizer.`isPermitted(Authentication authentication, P... permissions)` Check if given Authentication has all specified permission/s
    `boolean` | AuthContext.`isPermitted(Permission... permissions)` Check if current Authentication has all specified permission/s.
    `boolean` | Authorizer.`isPermittedAny(Authentication authentication, P... permissions)` Check if given Authentication has any of specified permission/s
    `boolean` | AuthContext.`isPermittedAny(Permission... permissions)` Check if current Authentication has any of specified permission/s If no Authentication in bound to this context, always returns `false`.
    `Authentication.Builder` | Authentication.Builder.`permission(Permission permission)` Add a permission granted to Authentication
    `Account.Builder` | Account.Builder.`permission(Permission permission)` Add a permission granted to Account

    Method parameters in com.holonplatform.auth with type arguments of type Permission
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | AuthContext.`isPermitted(Collection<Permission> permissions)` Check if current Authentication has all specified permission/s using a Collection If no Authentication in bound to this context, always returns `false`.
    `boolean` | AuthContext.`isPermittedAny(Collection<Permission> permissions)` Check if current Authentication has any of specified permission/s using a Collection If no Authentication in bound to this context, always returns `false`.
    `Account.Builder` | Account.Builder.`permissions(Collection<Permission> permissions)` Set permissions granted to Account.
    `boolean` | Realm.`supportsPermission(Class<? extends Permission> permissionType)` Returns whether this Realm supports given `Permission` type

Copyright © 2017 The Holon Platform. All rights reserved.