## Uses of Interface
org.keycloak.authorization.model.Policy

- Packages that use Policy
  Package | Description
  --- | ---
  org.keycloak.authorization.admin.util |
  org.keycloak.authorization.jpa.entities |
  org.keycloak.authorization.jpa.store |
  org.keycloak.authorization.model | Provides the domain model and any other type related with it
  org.keycloak.authorization.mongo.adapter |
  org.keycloak.authorization.mongo.store |
  org.keycloak.authorization.policy.evaluation | Provides classes related with the evaluation of policies.
  org.keycloak.authorization.policy.provider | Provides classes and a SPI to plug different policy providers.
  org.keycloak.authorization.policy.provider.aggregated |
  org.keycloak.authorization.policy.provider.drools |
  org.keycloak.authorization.policy.provider.js |
  org.keycloak.authorization.policy.provider.resource |
  org.keycloak.authorization.policy.provider.role |
  org.keycloak.authorization.policy.provider.scope |
  org.keycloak.authorization.policy.provider.time |
  org.keycloak.authorization.policy.provider.user |
  org.keycloak.authorization.store | Provides classes and a SPI to plug different metadata storage implementations.
  org.keycloak.models.authorization.infinispan |
  org.keycloak.models.authorization.infinispan.entities |

- - ### Uses of Policy in org.keycloak.authorization.admin.util

    Methods in org.keycloak.authorization.admin.util that return Policy
    Modifier and Type | Method and Description
    --- | ---
    `static Policy` | Models.`toModel(PolicyRepresentation policy, ResourceServer resourceServer, AuthorizationProvider authorizationManager)`

    Methods in org.keycloak.authorization.admin.util with parameters of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `static PolicyRepresentation` | Models.`toRepresentation(Policy model, AuthorizationProvider authorization)`

  - ### Uses of Policy in org.keycloak.authorization.jpa.entities

    Classes in org.keycloak.authorization.jpa.entities that implement Policy
    Modifier and Type | Class and Description
    --- | ---
    `class` | `PolicyEntity`

    Methods in org.keycloak.authorization.jpa.entities with type parameters of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `<P extends Policy> Set<P>` | PolicyEntity.`getAssociatedPolicies()`

    Methods in org.keycloak.authorization.jpa.entities that return types with arguments of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `List<? extends Policy>` | ScopeEntity.`getPolicies()`

    Methods in org.keycloak.authorization.jpa.entities with parameters of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `void` | PolicyEntity.`addAssociatedPolicy(Policy associatedPolicy)`
    `void` | PolicyEntity.`removeAssociatedPolicy(Policy associatedPolicy)`

  - ### Uses of Policy in org.keycloak.authorization.jpa.store

    Methods in org.keycloak.authorization.jpa.store that return Policy
    Modifier and Type | Method and Description
    --- | ---
    `Policy` | JPAPolicyStore.`create(String name, String type, ResourceServer resourceServer)`
    `Policy` | JPAPolicyStore.`findById(String id)`
    `Policy` | JPAPolicyStore.`findByName(String name, String resourceServerId)`

    Methods in org.keycloak.authorization.jpa.store that return types with arguments of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `List<Policy>` | JPAPolicyStore.`findByResource(String resourceId)`
    `List<Policy>` | JPAPolicyStore.`findByResourceServer(String resourceServerId)`
    `List<Policy>` | JPAPolicyStore.`findByResourceType(String resourceType, String resourceServerId)`
    `List<Policy>` | JPAPolicyStore.`findByScopeIds(List<String> scopeIds, String resourceServerId)`
    `List<Policy>` | JPAPolicyStore.`findByType(String type)`
    `List<Policy>` | JPAPolicyStore.`findDependentPolicies(String policyId)`

  - ### Uses of Policy in org.keycloak.authorization.model

    Methods in org.keycloak.authorization.model with type parameters of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `<P extends Policy> Set<P>` | Policy.`getAssociatedPolicies()` Returns the `Policy` instances associated with this policy and used to evaluate authorization decisions when this policy applies.

    Methods in org.keycloak.authorization.model with parameters of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `void` | Policy.`addAssociatedPolicy(Policy associatedPolicy)`
    `void` | Policy.`removeAssociatedPolicy(Policy associatedPolicy)`

  - ### Uses of Policy in org.keycloak.authorization.mongo.adapter

    Classes in org.keycloak.authorization.mongo.adapter that implement Policy
    Modifier and Type | Class and Description
    --- | ---
    `class` | `PolicyAdapter`

    Methods in org.keycloak.authorization.mongo.adapter that return types with arguments of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `Set<Policy>` | PolicyAdapter.`getAssociatedPolicies()`

    Methods in org.keycloak.authorization.mongo.adapter with parameters of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `void` | PolicyAdapter.`addAssociatedPolicy(Policy associatedPolicy)`
    `void` | PolicyAdapter.`removeAssociatedPolicy(Policy associatedPolicy)`

  - ### Uses of Policy in org.keycloak.authorization.mongo.store

    Methods in org.keycloak.authorization.mongo.store that return Policy
    Modifier and Type | Method and Description
    --- | ---
    `Policy` | MongoPolicyStore.`create(String name, String type, ResourceServer resourceServer)`
    `Policy` | MongoPolicyStore.`findById(String id)`
    `Policy` | MongoPolicyStore.`findByName(String name, String resourceServerId)`

    Methods in org.keycloak.authorization.mongo.store that return types with arguments of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `List<Policy>` | MongoPolicyStore.`findByResource(String resourceId)`
    `List<Policy>` | MongoPolicyStore.`findByResourceServer(String resourceServerId)`
    `List<Policy>` | MongoPolicyStore.`findByResourceType(String resourceType, String resourceServerId)`
    `List<Policy>` | MongoPolicyStore.`findByScopeIds(List<String> scopeIds, String resourceServerId)`
    `List<Policy>` | MongoPolicyStore.`findByType(String type)`
    `List<Policy>` | MongoPolicyStore.`findDependentPolicies(String policyId)`

  - ### Uses of Policy in org.keycloak.authorization.policy.evaluation

    Methods in org.keycloak.authorization.policy.evaluation that return Policy
    Modifier and Type | Method and Description
    --- | ---
    `Policy` | DefaultEvaluation.`getParentPolicy()`
    `Policy` | Result.PolicyResult.`getPolicy()`
    `Policy` | DefaultEvaluation.`getPolicy()`

    Methods in org.keycloak.authorization.policy.evaluation with parameters of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `Result.PolicyResult` | Result.`policy(Policy policy)`
    `Result.PolicyResult` | Result.PolicyResult.`policy(Policy policy)`

    Constructors in org.keycloak.authorization.policy.evaluation with parameters of type Policy
    Constructor and Description
    `DefaultEvaluation(ResourcePermission permission, EvaluationContext executionContext, Policy parentPolicy, Policy policy, Decision decision)`
    `PolicyResult(Policy policy)`

  - ### Uses of Policy in org.keycloak.authorization.policy.provider

    Methods in org.keycloak.authorization.policy.provider with parameters of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `PolicyProvider` | PolicyProviderFactory.`create(Policy policy, AuthorizationProvider authorization)`
    `void` | PolicyProviderAdminService.`onCreate(Policy policy)`
    `void` | PolicyProviderAdminService.`onRemove(Policy policy)`
    `void` | PolicyProviderAdminService.`onUpdate(Policy policy)`

  - ### Uses of Policy in org.keycloak.authorization.policy.provider.aggregated

    Methods in org.keycloak.authorization.policy.provider.aggregated with parameters of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `PolicyProvider` | AggregatePolicyProviderFactory.`create(Policy policy, AuthorizationProvider authorization)`
    `void` | AggregatePolicyAdminResource.`onCreate(Policy policy)`
    `void` | AggregatePolicyAdminResource.`onRemove(Policy policy)`
    `void` | AggregatePolicyAdminResource.`onUpdate(Policy policy)`

    Constructors in org.keycloak.authorization.policy.provider.aggregated with parameters of type Policy
    Constructor and Description
    `AggregatePolicyProvider(Policy policy, AuthorizationProvider authorization)`

  - ### Uses of Policy in org.keycloak.authorization.policy.provider.drools

    Methods in org.keycloak.authorization.policy.provider.drools with parameters of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `PolicyProvider` | DroolsPolicyProviderFactory.`create(Policy policy, AuthorizationProvider authorization)`
    `void` | DroolsPolicyAdminResource.`onCreate(Policy policy)`
    `void` | DroolsPolicyAdminResource.`onRemove(Policy policy)`
    `void` | DroolsPolicyAdminResource.`onUpdate(Policy policy)`

  - ### Uses of Policy in org.keycloak.authorization.policy.provider.js

    Methods in org.keycloak.authorization.policy.provider.js with parameters of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `PolicyProvider` | JSPolicyProviderFactory.`create(Policy policy, AuthorizationProvider authorization)`

    Constructors in org.keycloak.authorization.policy.provider.js with parameters of type Policy
    Constructor and Description
    `JSPolicyProvider(Policy policy)`

  - ### Uses of Policy in org.keycloak.authorization.policy.provider.resource

    Methods in org.keycloak.authorization.policy.provider.resource with parameters of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `PolicyProvider` | ResourcePolicyProviderFactory.`create(Policy policy, AuthorizationProvider authorization)`

    Constructors in org.keycloak.authorization.policy.provider.resource with parameters of type Policy
    Constructor and Description
    `ResourcePolicyProvider(Policy policy)`

  - ### Uses of Policy in org.keycloak.authorization.policy.provider.role

    Methods in org.keycloak.authorization.policy.provider.role with parameters of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `PolicyProvider` | RolePolicyProviderFactory.`create(Policy policy, AuthorizationProvider authorization)`

    Constructors in org.keycloak.authorization.policy.provider.role with parameters of type Policy
    Constructor and Description
    `RolePolicyProvider(Policy policy, AuthorizationProvider authorization)`

  - ### Uses of Policy in org.keycloak.authorization.policy.provider.scope

    Methods in org.keycloak.authorization.policy.provider.scope with parameters of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `PolicyProvider` | ScopePolicyProviderFactory.`create(Policy policy, AuthorizationProvider authorization)`

    Constructors in org.keycloak.authorization.policy.provider.scope with parameters of type Policy
    Constructor and Description
    `ScopePolicyProvider(Policy policy)`

  - ### Uses of Policy in org.keycloak.authorization.policy.provider.time

    Methods in org.keycloak.authorization.policy.provider.time with parameters of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `PolicyProvider` | TimePolicyProviderFactory.`create(Policy policy, AuthorizationProvider authorization)`
    `void` | TimePolicyAdminResource.`onCreate(Policy policy)`
    `void` | TimePolicyAdminResource.`onRemove(Policy policy)`
    `void` | TimePolicyAdminResource.`onUpdate(Policy policy)`

    Constructors in org.keycloak.authorization.policy.provider.time with parameters of type Policy
    Constructor and Description
    `TimePolicyProvider(Policy policy)`

  - ### Uses of Policy in org.keycloak.authorization.policy.provider.user

    Methods in org.keycloak.authorization.policy.provider.user with parameters of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `PolicyProvider` | UserPolicyProviderFactory.`create(Policy policy, AuthorizationProvider authorization)`

    Constructors in org.keycloak.authorization.policy.provider.user with parameters of type Policy
    Constructor and Description
    `UserPolicyProvider(Policy policy)`

  - ### Uses of Policy in org.keycloak.authorization.store

    Methods in org.keycloak.authorization.store that return Policy
    Modifier and Type | Method and Description
    --- | ---
    `Policy` | PolicyStore.`create(String name, String type, ResourceServer resourceServer)` Creates a new `Policy` instance.
    `Policy` | PolicyStore.`findById(String id)` Returns a `Policy` with the given `id`
    `Policy` | PolicyStore.`findByName(String name, String resourceServerId)` Returns a `Policy` with the given `name`

    Methods in org.keycloak.authorization.store that return types with arguments of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `List<Policy>` | PolicyStore.`findByResource(String resourceId)` Returns a list of `Policy` associated with a `org.keycloak.authorization.core.model.Resource` with the given `resourceId`.
    `List<Policy>` | PolicyStore.`findByResourceServer(String resourceServerId)` Returns a list of `Policy` associated with a `ResourceServer` with the given `resourceServerId`.
    `List<Policy>` | PolicyStore.`findByResourceType(String resourceType, String resourceServerId)` Returns a list of `Policy` associated with a `org.keycloak.authorization.core.model.Resource` with the given `type`.
    `List<Policy>` | PolicyStore.`findByScopeIds(List<String> scopeIds, String resourceServerId)` Returns a list of `Policy` associated with a `org.keycloak.authorization.core.model.Scope` with the given `scopeIds`.
    `List<Policy>` | PolicyStore.`findByType(String type)` Returns a list of `Policy` with the given `type`.
    `List<Policy>` | PolicyStore.`findDependentPolicies(String id)` Returns a list of `Policy` that depends on another policy with the given `id`.

  - ### Uses of Policy in org.keycloak.models.authorization.infinispan

    Methods in org.keycloak.models.authorization.infinispan that return Policy
    Modifier and Type | Method and Description
    --- | ---
    `Policy` | CachedPolicyStore.`create(String name, String type, ResourceServer resourceServer)`
    `Policy` | CachedPolicyStore.`findById(String id)`
    `Policy` | CachedPolicyStore.`findByName(String name, String resourceServerId)`

    Methods in org.keycloak.models.authorization.infinispan that return types with arguments of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `List<Policy>` | CachedPolicyStore.`findByResource(String resourceId)`
    `List<Policy>` | CachedPolicyStore.`findByResourceServer(String resourceServerId)`
    `List<Policy>` | CachedPolicyStore.`findByResourceType(String resourceType, String resourceServerId)`
    `List<Policy>` | CachedPolicyStore.`findByScopeIds(List<String> scopeIds, String resourceServerId)`
    `List<Policy>` | CachedPolicyStore.`findByType(String type)`
    `List<Policy>` | CachedPolicyStore.`findDependentPolicies(String id)`

  - ### Uses of Policy in org.keycloak.models.authorization.infinispan.entities

    Classes in org.keycloak.models.authorization.infinispan.entities that implement Policy
    Modifier and Type | Class and Description
    --- | ---
    `class` | `CachedPolicy`

    Methods in org.keycloak.models.authorization.infinispan.entities that return types with arguments of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `Set<Policy>` | CachedPolicy.`getAssociatedPolicies()`

    Methods in org.keycloak.models.authorization.infinispan.entities with parameters of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `void` | CachedPolicy.`addAssociatedPolicy(Policy associatedPolicy)`
    `void` | CachedPolicy.`removeAssociatedPolicy(Policy associatedPolicy)`

    Constructors in org.keycloak.models.authorization.infinispan.entities with parameters of type Policy
    Constructor and Description
    `CachedPolicy(Policy policy)`

Copyright © 2016 JBoss by Red Hat. All rights reserved.