Search in sources :

Example 1 with ResourceSetService

use of org.keycloak.authorization.admin.ResourceSetService in project keycloak by keycloak.

the class ProtectionService method resource.

@Path("/resource_set")
public Object resource() {
    KeycloakIdentity identity = createIdentity(true);
    ResourceServer resourceServer = getResourceServer(identity);
    ResourceSetService resourceManager = new ResourceSetService(this.session, resourceServer, this.authorization, null, createAdminEventBuilder(identity, resourceServer));
    ResteasyProviderFactory.getInstance().injectProperties(resourceManager);
    ResourceService resource = new ResourceService(this.session, resourceServer, identity, resourceManager);
    ResteasyProviderFactory.getInstance().injectProperties(resource);
    return resource;
}
Also used : ResourceSetService(org.keycloak.authorization.admin.ResourceSetService) KeycloakIdentity(org.keycloak.authorization.common.KeycloakIdentity) ResourceService(org.keycloak.authorization.protection.resource.ResourceService) ResourceServer(org.keycloak.authorization.model.ResourceServer) Path(javax.ws.rs.Path)

Aggregations

Path (javax.ws.rs.Path)1 ResourceSetService (org.keycloak.authorization.admin.ResourceSetService)1 KeycloakIdentity (org.keycloak.authorization.common.KeycloakIdentity)1 ResourceServer (org.keycloak.authorization.model.ResourceServer)1 ResourceService (org.keycloak.authorization.protection.resource.ResourceService)1