Class PolicyService

java.lang.Object
org.keycloak.authorization.admin.PolicyService
Direct Known Subclasses:
PermissionService, PolicyTypeService

public class PolicyService extends Object
Author:
Pedro Igor
  • Field Details

  • Constructor Details

  • Method Details

    • getResource

      @Path("{type}") public Object getResource(@PathParam("type") String type)
    • doCreatePolicyTypeResource

      protected PolicyTypeService doCreatePolicyTypeResource(String type)
    • doCreatePolicyResource

      protected Object doCreatePolicyResource(Policy policy)
    • create

      @POST @Consumes("application/json") @Produces("application/json") public jakarta.ws.rs.core.Response create(String payload)
    • doCreateRepresentation

      protected org.keycloak.representations.idm.authorization.AbstractPolicyRepresentation doCreateRepresentation(String payload)
    • create

      public Policy create(org.keycloak.representations.idm.authorization.AbstractPolicyRepresentation representation)
    • findByName

      @Path("/search") @GET @Produces("application/json") public jakarta.ws.rs.core.Response findByName(@QueryParam("name") String name, @QueryParam("fields") String fields)
    • findAll

      @GET @Produces("application/json") public jakarta.ws.rs.core.Response findAll(@QueryParam("policyId") String id, @QueryParam("name") String name, @QueryParam("type") String type, @QueryParam("resourceType") String resourceType, @QueryParam("resource") String resource, @QueryParam("scope") String scope, @QueryParam("permission") Boolean permission, @QueryParam("owner") String owner, @QueryParam("fields") String fields, @QueryParam("first") Integer firstResult, @QueryParam("max") Integer maxResult)
    • toRepresentation

      protected org.keycloak.representations.idm.authorization.AbstractPolicyRepresentation toRepresentation(Policy model, String fields, AuthorizationProvider authorization)
    • doSearch

      protected List<Object> doSearch(Integer firstResult, Integer maxResult, String fields, Map<Policy.FilterOption,String[]> filters)
    • findPolicyProviders

      @Path("providers") @GET @Produces("application/json") public jakarta.ws.rs.core.Response findPolicyProviders()
    • getPolicyEvaluateResource

      @Path("evaluate") public PolicyEvaluationService getPolicyEvaluateResource()
    • getPolicyProviderAdminResource

      protected PolicyProviderAdminService getPolicyProviderAdminResource(String policyType)
    • getPolicyProviderFactory

      protected PolicyProviderFactory getPolicyProviderFactory(String policyType)