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

- Packages that use Policy
  Package | Description
  --- | ---
  org.keycloak.authorization.admin |
  org.keycloak.authorization.jpa.store |
  org.keycloak.authorization.model | Provides the domain model and any other type related with it
  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.client |
  org.keycloak.authorization.policy.provider.clientscope |
  org.keycloak.authorization.policy.provider.group |
  org.keycloak.authorization.policy.provider.js |
  org.keycloak.authorization.policy.provider.permission |
  org.keycloak.authorization.policy.provider.regex |
  org.keycloak.authorization.policy.provider.role |
  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.forms.account.freemarker.model |
  org.keycloak.models.cache.infinispan.authorization |
  org.keycloak.models.cache.infinispan.authorization.entities |
  org.keycloak.models.map.authorization |
  org.keycloak.models.map.authorization.adapter |
  org.keycloak.models.map.storage.chm |
  org.keycloak.models.utils |
  org.keycloak.services.resources.admin.permissions |

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

    Methods in org.keycloak.authorization.admin that return Policy
    Modifier and Type | Method and Description
    --- | ---
    `Policy` | PolicyService.`create(AbstractPolicyRepresentation representation)`
    `protected Policy` | PolicyResourceService.`getPolicy()`

    Methods in org.keycloak.authorization.admin with parameters of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `protected Object` | PolicyTypeService.`doCreatePolicyResource(Policy policy)`
    `protected Object` | PolicyService.`doCreatePolicyResource(Policy policy)`
    `protected PolicyResourceService` | PermissionService.`doCreatePolicyResource(Policy policy)`
    `protected AbstractPolicyRepresentation` | PolicyTypeService.`toRepresentation(Policy policy, String fields, AuthorizationProvider authorization)`
    `protected AbstractPolicyRepresentation` | PolicyTypeResourceService.`toRepresentation(Policy policy, String fields, AuthorizationProvider authorization)`
    `protected AbstractPolicyRepresentation` | PolicyService.`toRepresentation(Policy model, String fields, AuthorizationProvider authorization)`
    `protected AbstractPolicyRepresentation` | PolicyResourceService.`toRepresentation(Policy policy, String fields, AuthorizationProvider authorization)`
    `protected AbstractPolicyRepresentation` | PermissionService.`toRepresentation(Policy policy, String fields, AuthorizationProvider authorization)`

    Constructors in org.keycloak.authorization.admin with parameters of type Policy
    Constructor and Description
    `PolicyResourceService(Policy policy, ResourceServer resourceServer, AuthorizationProvider authorization, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent)`
    `PolicyTypeResourceService(Policy policy, ResourceServer resourceServer, AuthorizationProvider authorization, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent)`

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

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

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

    Methods in org.keycloak.authorization.jpa.store that return types with arguments of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `List<Policy>` | JPAPolicyStore.`findByResourceServer(Map<Policy.FilterOption,String[]> attributes, String resourceServerId, int firstResult, int maxResult)`
    `List<Policy>` | JPAPolicyStore.`findByResourceServer(String resourceServerId)`
    `List<Policy>` | JPAPolicyStore.`findByScopeIds(List<String> scopeIds, String resourceServerId)`
    `List<Policy>` | JPAPolicyStore.`findByType(String type, String resourceServerId)`
    `List<Policy>` | JPAPolicyStore.`findDependentPolicies(String policyId, String resourceServerId)`
    `Set<Policy>` | PolicyAdapter.`getAssociatedPolicies()`

    Methods in org.keycloak.authorization.jpa.store with parameters of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `void` | PolicyAdapter.`addAssociatedPolicy(Policy associatedPolicy)`
    `void` | PolicyAdapter.`removeAssociatedPolicy(Policy associatedPolicy)`
    `void` | PermissionTicketAdapter.`setPolicy(Policy policy)`
    `static PolicyEntity` | PolicyAdapter.`toEntity(javax.persistence.EntityManager em, Policy policy)`

    Method parameters in org.keycloak.authorization.jpa.store with type arguments of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `void` | JPAPolicyStore.`findByResource(String resourceId, String resourceServerId, Consumer<Policy> consumer)`
    `void` | JPAPolicyStore.`findByResourceType(String resourceType, String resourceServerId, Consumer<Policy> consumer)`
    `void` | JPAPolicyStore.`findByScopeIds(List<String> scopeIds, String resourceId, String resourceServerId, Consumer<Policy> consumer)`

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

    Fields in org.keycloak.authorization.model with type parameters of type Policy
    Modifier and Type | Field and Description
    --- | ---
    `static SearchableModelField<Policy>` | Policy.SearchableFields.`ASSOCIATED_POLICY_ID`
    `static SearchableModelField<Policy>` | Policy.SearchableFields.`CONFIG`
    `static SearchableModelField<Policy>` | Policy.SearchableFields.`ID`
    `static SearchableModelField<Policy>` | Policy.SearchableFields.`NAME`
    `static SearchableModelField<Policy>` | Policy.SearchableFields.`OWNER`
    `static SearchableModelField<Policy>` | Policy.SearchableFields.`RESOURCE_ID`
    `static SearchableModelField<Policy>` | Policy.SearchableFields.`RESOURCE_SERVER_ID`
    `static SearchableModelField<Policy>` | Policy.SearchableFields.`SCOPE_ID`
    `static SearchableModelField<Policy>` | Policy.SearchableFields.`TYPE`

    Methods in org.keycloak.authorization.model that return Policy
    Modifier and Type | Method and Description
    --- | ---
    `Policy` | PermissionTicket.`getPolicy()`

    Methods in org.keycloak.authorization.model that return types with arguments of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `Set<Policy>` | Policy.`getAssociatedPolicies()` Returns the `Policy` instances associated with this policy and used to evaluate authorization decisions when this policy applies.
    `SearchableModelField<Policy>` | Policy.FilterOption.`getSearchableModelField()`

    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)`
    `void` | PermissionTicket.`setPolicy(Policy policy)`

  - ### 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` | Evaluation.`getPolicy()` Returns the `Policy`.
    `Policy` | DefaultEvaluation.`getPolicy()`

    Methods in org.keycloak.authorization.policy.evaluation that return types with arguments of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `Map<Policy,Map<Object,Decision.Effect>>` | DefaultEvaluation.`getDecisionCache()`

    Methods in org.keycloak.authorization.policy.evaluation with parameters of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `Result.PolicyResult` | Result.`getPolicy(Policy policy)`
    `Result.PolicyResult` | Result.`policy(Policy policy)`
    `Result.PolicyResult` | Result.PolicyResult.`policy(Policy policy, Decision.Effect effect)`
    `void` | DefaultEvaluation.`setPolicy(Policy policy)`

    Method parameters in org.keycloak.authorization.policy.evaluation with type arguments of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `void` | PolicyEvaluator.`evaluate(ResourcePermission permission, AuthorizationProvider authorizationProvider, EvaluationContext executionContext, Decision decision, Map<Policy,Map<Object,Decision.Effect>> decisionCache)` Starts the evaluation of the configured authorization policies.
    `void` | DefaultPolicyEvaluator.`evaluate(ResourcePermission permission, AuthorizationProvider authorizationProvider, EvaluationContext executionContext, Decision decision, Map<Policy,Map<Object,Decision.Effect>> decisionCache)`

    Constructors in org.keycloak.authorization.policy.evaluation with parameters of type Policy
    Constructor and Description
    `DefaultEvaluation(ResourcePermission permission, EvaluationContext executionContext, Policy parentPolicy, Decision decision, AuthorizationProvider authorizationProvider, Map<Policy,Map<Object,Decision.Effect>> decisionCache)`
    `DefaultEvaluation(ResourcePermission permission, EvaluationContext executionContext, Policy parentPolicy, Policy policy, Decision decision, AuthorizationProvider authorizationProvider, Map<Policy,Map<Object,Decision.Effect>> decisionCache)`
    `PolicyResult(Policy policy)`
    `PolicyResult(Policy policy, Decision.Effect status)`

    Constructor parameters in org.keycloak.authorization.policy.evaluation with type arguments of type Policy
    Constructor and Description
    `DefaultEvaluation(ResourcePermission permission, EvaluationContext executionContext, Policy parentPolicy, Decision decision, AuthorizationProvider authorizationProvider, Map<Policy,Map<Object,Decision.Effect>> decisionCache)`
    `DefaultEvaluation(ResourcePermission permission, EvaluationContext executionContext, Policy parentPolicy, Policy policy, Decision decision, AuthorizationProvider authorizationProvider, Map<Policy,Map<Object,Decision.Effect>> decisionCache)`

  - ### 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
    --- | ---
    `default void` | PolicyProviderFactory.`onCreate(Policy policy, R representation, AuthorizationProvider authorization)`
    `default void` | PolicyProviderFactory.`onExport(Policy policy, PolicyRepresentation representation, AuthorizationProvider authorizationProvider)`
    `default void` | PolicyProviderFactory.`onImport(Policy policy, PolicyRepresentation representation, AuthorizationProvider authorization)`
    `default void` | PolicyProviderFactory.`onRemove(Policy policy, AuthorizationProvider authorization)`
    `default void` | PolicyProviderFactory.`onUpdate(Policy policy, R representation, AuthorizationProvider authorization)`
    `R` | PolicyProviderFactory.`toRepresentation(Policy policy, AuthorizationProvider authorization)`

  - ### 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
    --- | ---
    `void` | AggregatePolicyProviderFactory.`onCreate(Policy policy, AggregatePolicyRepresentation representation, AuthorizationProvider authorization)`
    `void` | AggregatePolicyProviderFactory.`onImport(Policy policy, PolicyRepresentation representation, AuthorizationProvider authorization)`
    `void` | AggregatePolicyProviderFactory.`onRemove(Policy policy, AuthorizationProvider authorization)`
    `void` | AggregatePolicyProviderFactory.`onUpdate(Policy policy, AggregatePolicyRepresentation representation, AuthorizationProvider authorization)`
    `AggregatePolicyRepresentation` | AggregatePolicyProviderFactory.`toRepresentation(Policy policy, AuthorizationProvider authorization)`

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

    Methods in org.keycloak.authorization.policy.provider.client with parameters of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `void` | ClientPolicyProviderFactory.`onCreate(Policy policy, ClientPolicyRepresentation representation, AuthorizationProvider authorization)`
    `void` | ClientPolicyProviderFactory.`onExport(Policy policy, PolicyRepresentation representation, AuthorizationProvider authorization)`
    `void` | ClientPolicyProviderFactory.`onImport(Policy policy, PolicyRepresentation representation, AuthorizationProvider authorization)`
    `void` | ClientPolicyProviderFactory.`onUpdate(Policy policy, ClientPolicyRepresentation representation, AuthorizationProvider authorization)`
    `ClientPolicyRepresentation` | ClientPolicyProviderFactory.`toRepresentation(Policy policy, AuthorizationProvider authorization)`

    Constructor parameters in org.keycloak.authorization.policy.provider.client with type arguments of type Policy
    Constructor and Description
    `ClientPolicyProvider(BiFunction<Policy,AuthorizationProvider,ClientPolicyRepresentation> representationFunction)`

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

    Methods in org.keycloak.authorization.policy.provider.clientscope with parameters of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `void` | ClientScopePolicyProviderFactory.`onCreate(Policy policy, ClientScopePolicyRepresentation representation, AuthorizationProvider authorization)`
    `void` | ClientScopePolicyProviderFactory.`onExport(Policy policy, PolicyRepresentation representation, AuthorizationProvider authorizationProvider)`
    `void` | ClientScopePolicyProviderFactory.`onImport(Policy policy, PolicyRepresentation representation, AuthorizationProvider authorization)`
    `void` | ClientScopePolicyProviderFactory.`onUpdate(Policy policy, ClientScopePolicyRepresentation representation, AuthorizationProvider authorization)`
    `ClientScopePolicyRepresentation` | ClientScopePolicyProviderFactory.`toRepresentation(Policy policy, AuthorizationProvider authorization)`

    Constructor parameters in org.keycloak.authorization.policy.provider.clientscope with type arguments of type Policy
    Constructor and Description
    `ClientScopePolicyProvider(BiFunction<Policy,AuthorizationProvider,ClientScopePolicyRepresentation> representationFunction)`

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

    Methods in org.keycloak.authorization.policy.provider.group with parameters of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `void` | GroupPolicyProviderFactory.`onCreate(Policy policy, GroupPolicyRepresentation representation, AuthorizationProvider authorization)`
    `void` | GroupPolicyProviderFactory.`onExport(Policy policy, PolicyRepresentation representation, AuthorizationProvider authorization)`
    `void` | GroupPolicyProviderFactory.`onImport(Policy policy, PolicyRepresentation representation, AuthorizationProvider authorization)`
    `void` | GroupPolicyProviderFactory.`onUpdate(Policy policy, GroupPolicyRepresentation representation, AuthorizationProvider authorization)`
    `GroupPolicyRepresentation` | GroupPolicyProviderFactory.`toRepresentation(Policy policy, AuthorizationProvider authorization)`

    Constructor parameters in org.keycloak.authorization.policy.provider.group with type arguments of type Policy
    Constructor and Description
    `GroupPolicyProvider(BiFunction<Policy,AuthorizationProvider,GroupPolicyRepresentation> representationFunction)`

  - ### 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
    --- | ---
    `protected ScriptModel` | JSPolicyProviderFactory.`getScriptModel(Policy policy, RealmModel realm, ScriptingProvider scripting)`
    `protected ScriptModel` | DeployedScriptPolicyFactory.`getScriptModel(Policy policy, RealmModel realm, ScriptingProvider scripting)`
    `void` | JSPolicyProviderFactory.`onCreate(Policy policy, JSPolicyRepresentation representation, AuthorizationProvider authorization)`
    `void` | DeployedScriptPolicyFactory.`onCreate(Policy policy, JSPolicyRepresentation representation, AuthorizationProvider authorization)`
    `void` | JSPolicyProviderFactory.`onImport(Policy policy, PolicyRepresentation representation, AuthorizationProvider authorization)`
    `void` | JSPolicyProviderFactory.`onRemove(Policy policy, AuthorizationProvider authorization)`
    `void` | JSPolicyProviderFactory.`onUpdate(Policy policy, JSPolicyRepresentation representation, AuthorizationProvider authorization)`
    `JSPolicyRepresentation` | JSPolicyProviderFactory.`toRepresentation(Policy policy, AuthorizationProvider authorization)`
    `JSPolicyRepresentation` | DeployedScriptPolicyFactory.`toRepresentation(Policy policy, AuthorizationProvider authorization)`

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

    Methods in org.keycloak.authorization.policy.provider.permission with parameters of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `void` | ResourcePolicyProviderFactory.`onCreate(Policy policy, ResourcePermissionRepresentation representation, AuthorizationProvider authorization)`
    `void` | ScopePolicyProviderFactory.`onCreate(Policy policy, ScopePermissionRepresentation representation, AuthorizationProvider authorization)`
    `void` | UMAPolicyProviderFactory.`onCreate(Policy policy, UmaPermissionRepresentation representation, AuthorizationProvider authorization)`
    `void` | UMAPolicyProviderFactory.`onImport(Policy policy, PolicyRepresentation representation, AuthorizationProvider authorization)`
    `void` | UMAPolicyProviderFactory.`onRemove(Policy policy, AuthorizationProvider authorization)`
    `void` | ResourcePolicyProviderFactory.`onRemove(Policy policy, AuthorizationProvider authorization)`
    `void` | ResourcePolicyProviderFactory.`onUpdate(Policy policy, ResourcePermissionRepresentation representation, AuthorizationProvider authorization)`
    `void` | ScopePolicyProviderFactory.`onUpdate(Policy policy, ScopePermissionRepresentation representation, AuthorizationProvider authorization)`
    `void` | UMAPolicyProviderFactory.`onUpdate(Policy policy, UmaPermissionRepresentation representation, AuthorizationProvider authorization)`
    `UmaPermissionRepresentation` | UMAPolicyProviderFactory.`toRepresentation(Policy policy, AuthorizationProvider authorization)`
    `ScopePermissionRepresentation` | ScopePolicyProviderFactory.`toRepresentation(Policy policy, AuthorizationProvider authorization)`
    `ResourcePermissionRepresentation` | ResourcePolicyProviderFactory.`toRepresentation(Policy policy, AuthorizationProvider authorization)`

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

    Methods in org.keycloak.authorization.policy.provider.regex with parameters of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `void` | RegexPolicyProviderFactory.`onCreate(Policy policy, RegexPolicyRepresentation representation, AuthorizationProvider authorization)`
    `void` | RegexPolicyProviderFactory.`onImport(Policy policy, PolicyRepresentation representation, AuthorizationProvider authorization)`
    `void` | RegexPolicyProviderFactory.`onUpdate(Policy policy, RegexPolicyRepresentation representation, AuthorizationProvider authorization)`
    `RegexPolicyRepresentation` | RegexPolicyProviderFactory.`toRepresentation(Policy policy, AuthorizationProvider authorization)`

    Constructor parameters in org.keycloak.authorization.policy.provider.regex with type arguments of type Policy
    Constructor and Description
    `RegexPolicyProvider(BiFunction<Policy,AuthorizationProvider,RegexPolicyRepresentation> representationFunction)`

  - ### 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
    --- | ---
    `void` | RolePolicyProviderFactory.`onCreate(Policy policy, RolePolicyRepresentation representation, AuthorizationProvider authorization)`
    `void` | RolePolicyProviderFactory.`onExport(Policy policy, PolicyRepresentation representation, AuthorizationProvider authorizationProvider)`
    `void` | RolePolicyProviderFactory.`onImport(Policy policy, PolicyRepresentation representation, AuthorizationProvider authorization)`
    `void` | RolePolicyProviderFactory.`onUpdate(Policy policy, RolePolicyRepresentation representation, AuthorizationProvider authorization)`
    `RolePolicyRepresentation` | RolePolicyProviderFactory.`toRepresentation(Policy policy, AuthorizationProvider authorization)`

    Constructor parameters in org.keycloak.authorization.policy.provider.role with type arguments of type Policy
    Constructor and Description
    `RolePolicyProvider(BiFunction<Policy,AuthorizationProvider,RolePolicyRepresentation> representationFunction)`

  - ### 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
    --- | ---
    `void` | TimePolicyProviderFactory.`onCreate(Policy policy, TimePolicyRepresentation representation, AuthorizationProvider authorization)`
    `void` | TimePolicyProviderFactory.`onImport(Policy policy, PolicyRepresentation representation, AuthorizationProvider authorization)`
    `void` | TimePolicyProviderFactory.`onRemove(Policy policy, AuthorizationProvider authorization)`
    `void` | TimePolicyProviderFactory.`onUpdate(Policy policy, TimePolicyRepresentation representation, AuthorizationProvider authorization)`
    `TimePolicyRepresentation` | TimePolicyProviderFactory.`toRepresentation(Policy policy, AuthorizationProvider authorization)`

  - ### 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
    --- | ---
    `void` | UserPolicyProviderFactory.`onCreate(Policy policy, UserPolicyRepresentation representation, AuthorizationProvider authorization)`
    `void` | UserPolicyProviderFactory.`onExport(Policy policy, PolicyRepresentation representation, AuthorizationProvider authorizationProvider)`
    `void` | UserPolicyProviderFactory.`onImport(Policy policy, PolicyRepresentation representation, AuthorizationProvider authorization)`
    `void` | UserPolicyProviderFactory.`onUpdate(Policy policy, UserPolicyRepresentation representation, AuthorizationProvider authorization)`
    `UserPolicyRepresentation` | UserPolicyProviderFactory.`toRepresentation(Policy policy, AuthorizationProvider authorization)`

    Constructor parameters in org.keycloak.authorization.policy.provider.user with type arguments of type Policy
    Constructor and Description
    `UserPolicyProvider(BiFunction<Policy,AuthorizationProvider,UserPolicyRepresentation> representationFunction)`

  - ### 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(AbstractPolicyRepresentation representation, ResourceServer resourceServer)` Creates a new `Policy` instance.
    `Policy` | PolicyStore.`findById(String id, String resourceServerId)` 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
    --- | ---
    `default List<Policy>` | PolicyStore.`findByResource(String resourceId, String resourceServerId)` Returns a list of `Policy` associated with a `org.keycloak.authorization.core.model.Resource` with the given `resourceId`.
    `List<Policy>` | PolicyStore.`findByResourceServer(Map<Policy.FilterOption,String[]> attributes, String resourceServerId, int firstResult, int maxResult)` Returns a list of `Policy` associated with a `ResourceServer` with the given `resourceServerId`.
    `List<Policy>` | PolicyStore.`findByResourceServer(String resourceServerId)` Returns a list of `Policy` associated with a `ResourceServer` with the given `resourceServerId`.
    `default 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`.
    `default List<Policy>` | PolicyStore.`findByScopeIds(List<String> scopeIds, String resourceId, String resourceServerId)` Returns a list of `Policy` associated with a `org.keycloak.authorization.core.model.Scope` with the given `resourceId` and `scopeIds`.
    `List<Policy>` | PolicyStore.`findByType(String type, String resourceServerId)` Returns a list of `Policy` with the given `type`.
    `List<Policy>` | PolicyStore.`findDependentPolicies(String id, String resourceServerId)` Returns a list of `Policy` that depends on another policy with the given `id`.

    Method parameters in org.keycloak.authorization.store with type arguments of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `void` | PolicyStore.`findByResource(String resourceId, String resourceServerId, Consumer<Policy> consumer)`
    `void` | PolicyStore.`findByResourceType(String type, String resourceServerId, Consumer<Policy> policyConsumer)`
    `void` | PolicyStore.`findByScopeIds(List<String> scopeIds, String resourceId, String resourceServerId, Consumer<Policy> consumer)` Effectively the same method as `PolicyStore.findByScopeIds(List, String, String)`, however in the end the `consumer` is fed with the result.

  - ### Uses of Policy in org.keycloak.forms.account.freemarker.model

    Constructors in org.keycloak.forms.account.freemarker.model with parameters of type Policy
    Constructor and Description
    `ManagedPermissionBean(Policy policy)`

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

    Fields in org.keycloak.models.cache.infinispan.authorization declared as Policy
    Modifier and Type | Field and Description
    --- | ---
    `protected Policy` | PolicyAdapter.`updated`

    Fields in org.keycloak.models.cache.infinispan.authorization with type parameters of type Policy
    Modifier and Type | Field and Description
    --- | ---
    `protected Set<Policy>` | PolicyAdapter.`associatedPolicies`

    Methods in org.keycloak.models.cache.infinispan.authorization that return Policy
    Modifier and Type | Method and Description
    --- | ---
    `Policy` | StoreFactoryCacheSession.PolicyCache.`create(AbstractPolicyRepresentation representation, ResourceServer resourceServer)`
    `Policy` | StoreFactoryCacheSession.PolicyCache.`findById(String id, String resourceServerId)`
    `Policy` | StoreFactoryCacheSession.PolicyCache.`findByName(String name, String resourceServerId)`
    `Policy` | PolicyAdapter.`getDelegateForUpdate()`
    `Policy` | PermissionTicketAdapter.`getPolicy()`

    Methods in org.keycloak.models.cache.infinispan.authorization that return types with arguments of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `List<Policy>` | StoreFactoryCacheSession.PolicyCache.`findByResource(String resourceId, String resourceServerId)`
    `List<Policy>` | StoreFactoryCacheSession.PolicyCache.`findByResourceServer(Map<Policy.FilterOption,String[]> attributes, String resourceServerId, int firstResult, int maxResult)`
    `List<Policy>` | StoreFactoryCacheSession.PolicyCache.`findByResourceServer(String resourceServerId)`
    `List<Policy>` | StoreFactoryCacheSession.PolicyCache.`findByResourceType(String resourceType, String resourceServerId)`
    `List<Policy>` | StoreFactoryCacheSession.PolicyCache.`findByScopeIds(List<String> scopeIds, String resourceServerId)`
    `List<Policy>` | StoreFactoryCacheSession.PolicyCache.`findByScopeIds(List<String> scopeIds, String resourceId, String resourceServerId)`
    `List<Policy>` | StoreFactoryCacheSession.PolicyCache.`findByType(String type, String resourceServerId)`
    `List<Policy>` | StoreFactoryCacheSession.PolicyCache.`findDependentPolicies(String id, String resourceServerId)`
    `Set<Policy>` | PolicyAdapter.`getAssociatedPolicies()`

    Methods in org.keycloak.models.cache.infinispan.authorization with parameters of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `void` | PolicyAdapter.`addAssociatedPolicy(Policy associatedPolicy)`
    `void` | PolicyAdapter.`removeAssociatedPolicy(Policy associatedPolicy)`
    `void` | PermissionTicketAdapter.`setPolicy(Policy policy)`

    Method parameters in org.keycloak.models.cache.infinispan.authorization with type arguments of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `void` | StoreFactoryCacheSession.PolicyCache.`findByResource(String resourceId, String resourceServerId, Consumer<Policy> consumer)`
    `void` | StoreFactoryCacheSession.PolicyCache.`findByResourceType(String resourceType, String resourceServerId, Consumer<Policy> consumer)`
    `void` | StoreFactoryCacheSession.PolicyCache.`findByScopeIds(List<String> scopeIds, String resourceId, String resourceServerId, Consumer<Policy> consumer)`

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

    Method parameters in org.keycloak.models.cache.infinispan.authorization.entities with type arguments of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `Set<String>` | CachedPolicy.`getAssociatedPoliciesIds(Supplier<Policy> policy)`
    `Map<String,String>` | CachedPolicy.`getConfig(Supplier<Policy> policy)`
    `Set<String>` | CachedPolicy.`getResourcesIds(Supplier<Policy> policy)`
    `Set<String>` | CachedPolicy.`getScopesIds(Supplier<Policy> policy)`

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

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

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

    Methods in org.keycloak.models.map.authorization that return types with arguments of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `List<Policy>` | MapPolicyStore.`findByResourceServer(Map<Policy.FilterOption,String[]> attributes, String resourceServerId, int firstResult, int maxResult)`
    `List<Policy>` | MapPolicyStore.`findByResourceServer(String id)`
    `List<Policy>` | MapPolicyStore.`findByScopeIds(List<String> scopeIds, String resourceServerId)`
    `List<Policy>` | MapPolicyStore.`findByType(String type, String resourceServerId)`
    `List<Policy>` | MapPolicyStore.`findDependentPolicies(String id, String resourceServerId)`

    Method parameters in org.keycloak.models.map.authorization with type arguments of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `void` | MapPolicyStore.`findByResource(String resourceId, String resourceServerId, Consumer<Policy> consumer)`
    `void` | MapPolicyStore.`findByResourceType(String type, String resourceServerId, Consumer<Policy> policyConsumer)`
    `void` | MapPolicyStore.`findByScopeIds(List<String> scopeIds, String resourceId, String resourceServerId, Consumer<Policy> consumer)`

    Constructor parameters in org.keycloak.models.map.authorization with type arguments of type Policy
    Constructor and Description
    `MapPolicyStore(KeycloakSession session, MapStorage<MapPolicyEntity,Policy> policyStore, AuthorizationProvider provider)`

  - ### Uses of Policy in org.keycloak.models.map.authorization.adapter

    Classes in org.keycloak.models.map.authorization.adapter that implement Policy
    Modifier and Type | Class and Description
    --- | ---
    `class` | `AbstractPolicyModel<E extends AbstractEntity>`
    `class` | `MapPolicyAdapter`

    Methods in org.keycloak.models.map.authorization.adapter that return Policy
    Modifier and Type | Method and Description
    --- | ---
    `Policy` | MapPermissionTicketAdapter.`getPolicy()`

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

    Methods in org.keycloak.models.map.authorization.adapter with parameters of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `void` | MapPolicyAdapter.`addAssociatedPolicy(Policy associatedPolicy)`
    `void` | MapPolicyAdapter.`removeAssociatedPolicy(Policy associatedPolicy)`
    `void` | MapPermissionTicketAdapter.`setPolicy(Policy policy)`

  - ### Uses of Policy in org.keycloak.models.map.storage.chm

    Fields in org.keycloak.models.map.storage.chm with type parameters of type Policy
    Modifier and Type | Field and Description
    --- | ---
    `static Map<SearchableModelField<Policy>,MapModelCriteriaBuilder.UpdatePredicatesFunc<Object,MapPolicyEntity,Policy>>` | MapFieldPredicates.`AUTHZ_POLICY_PREDICATES`
    `static Map<SearchableModelField<Policy>,MapModelCriteriaBuilder.UpdatePredicatesFunc<Object,MapPolicyEntity,Policy>>` | MapFieldPredicates.`AUTHZ_POLICY_PREDICATES`

  - ### Uses of Policy in org.keycloak.models.utils

    Methods in org.keycloak.models.utils that return Policy
    Modifier and Type | Method and Description
    --- | ---
    `static Policy` | RepresentationToModel.`toModel(AbstractPolicyRepresentation representation, AuthorizationProvider authorization, Policy model)`

    Methods in org.keycloak.models.utils with parameters of type Policy
    Modifier and Type | Method and Description
    --- | ---
    `static Policy` | RepresentationToModel.`toModel(AbstractPolicyRepresentation representation, AuthorizationProvider authorization, Policy model)`
    `static <R extends AbstractPolicyRepresentation> R` | ModelToRepresentation.`toRepresentation(Policy policy, AuthorizationProvider authorization)`
    `static <R extends AbstractPolicyRepresentation> R` | ModelToRepresentation.`toRepresentation(Policy policy, AuthorizationProvider authorization, boolean genericRepresentation, boolean export)`
    `static <R extends AbstractPolicyRepresentation> R` | ModelToRepresentation.`toRepresentation(Policy policy, AuthorizationProvider authorization, boolean genericRepresentation, boolean export, boolean allFields)`

  - ### Uses of Policy in org.keycloak.services.resources.admin.permissions

    Methods in org.keycloak.services.resources.admin.permissions that return Policy
    Modifier and Type | Method and Description
    --- | ---
    `Policy` | UserPermissionManagement.`adminImpersonatingPermission()`
    `Policy` | ClientPermissionManagement.`configurePermission(ClientModel client)`
    `Policy` | ClientPermissionManagement.`exchangeToPermission(ClientModel client)`
    `Policy` | IdentityProviderPermissionManagement.`exchangeToPermission(IdentityProviderModel idp)`
    `Policy` | UserPermissionManagement.`manageGroupMembershipPermission()`
    `Policy` | GroupPermissionManagement.`manageMembershipPermission(GroupModel group)`
    `Policy` | GroupPermissionManagement.`manageMembersPermission(GroupModel group)`
    `Policy` | UserPermissionManagement.`managePermission()`
    `Policy` | ClientPermissionManagement.`managePermission(ClientModel client)`
    `Policy` | GroupPermissionManagement.`managePermission(GroupModel group)`
    `Policy` | RolePermissionManagement.`manageUsersPolicy(ResourceServer server)`
    `Policy` | RolePermissionManagement.`mapClientScopePermission(RoleModel role)`
    `Policy` | RolePermissionManagement.`mapCompositePermission(RoleModel role)`
    `Policy` | RolePermissionManagement.`mapRolePermission(RoleModel role)`
    `Policy` | ClientPermissionManagement.`mapRolesClientScopePermission(ClientModel client)`
    `Policy` | ClientPermissionManagement.`mapRolesCompositePermission(ClientModel client)`
    `Policy` | UserPermissionManagement.`mapRolesPermission()`
    `Policy` | ClientPermissionManagement.`mapRolesPermission(ClientModel client)`
    `Policy` | RolePermissionManagement.`rolePolicy(ResourceServer server, RoleModel role)`
    `Policy` | UserPermissionManagement.`userImpersonatedPermission()`
    `Policy` | GroupPermissionManagement.`viewMembersPermission(GroupModel group)`
    `Policy` | UserPermissionManagement.`viewPermission()`
    `Policy` | ClientPermissionManagement.`viewPermission(ClientModel client)`
    `Policy` | GroupPermissionManagement.`viewPermission(GroupModel group)`
    `Policy` | RolePermissionManagement.`viewUsersPolicy(ResourceServer server)`

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