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

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

- - ### 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>` An Authorizer is responsible for `Authentication` authorization control using `Authentication.getPermissions()` 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
    `default <P extends Permission> Realm.Builder` | Realm.Builder.`authorizer(Authorizer<P> authorizer)` Deprecated. Use `Realm.Builder.withAuthorizer(Authorizer)`
    `<P extends Permission> Realm.Builder` | Realm.Builder.`withAuthorizer(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
    --- | ---
    `default <T extends P> boolean` | Authorizer.`isPermitted(Authentication authentication, T... permissions)` Check if given Authentication has all the specified permission/s.
    `default boolean` | AuthenticationInspector.`isPermitted(Permission... permissions)` Checks if the current `Authentication` has all the specified `Permission`s.
    `default <T extends P> boolean` | Authorizer.`isPermittedAny(Authentication authentication, T... permissions)` Check if given Authentication has any of the specified permission/s.
    `default boolean` | AuthenticationInspector.`isPermittedAny(Permission... permissions)` Checks if the current `Authentication` has any of the specified `Permission`.
    `default Authentication.Builder` | Authentication.Builder.`permission(Permission permission)` Deprecated. Use `Authentication.Builder.withPermission(Permission)`
    `default Account.Builder` | Account.Builder.`permission(Permission permission)` Deprecated. Use `Account.Builder.withPermission(Permission)`
    `Authentication.Builder` | Authentication.Builder.`withPermission(Permission permission)` Add a permission granted to Authentication
    `Account.Builder` | Account.Builder.`withPermission(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` | AuthenticationInspector.`isPermitted(Collection<? extends Permission> permissions)` Checks if the current `Authentication` has all the specified `Permission`s.
    `boolean` | AuthenticationInspector.`isPermittedAny(Collection<? extends Permission> permissions)` Checks if the current `Authentication` has any of the specified `Permission`.
    `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

  - ### Uses of Permission in com.holonplatform.spring.security

    Methods in com.holonplatform.spring.security that return Permission
    Modifier and Type | Method and Description
    --- | ---
    `static Permission` | SpringSecurity.`asPermission(org.springframework.security.core.GrantedAuthority authority)` Get the `Permission` representation of the given Spring Security `GrantedAuthority`.

    Methods in com.holonplatform.spring.security with parameters of type Permission
    Modifier and Type | Method and Description
    --- | ---
    `static org.springframework.security.core.GrantedAuthority` | SpringSecurity.`asAuthority(Permission permission)` Get the Spring Security `GrantedAuthority` representation of the given `Permission`.

Copyright © 2019 The Holon Platform. All rights reserved.