Class ProtectionResource
java.lang.Object
org.keycloak.authorization.client.resource.ProtectionResource
An entry point to access the Protection API endpoints.
- Author:
- Pedro Igor
-
Constructor Summary
ConstructorsConstructorDescriptionProtectionResource(Http http, ServerConfiguration serverConfiguration, Configuration configuration, TokenCallable pat) -
Method Summary
Modifier and TypeMethodDescriptionIntrospects the givenrptusing the token introspection endpoint.Creates aPermissionResourcewhich can be used to manage permission tickets.resource()Creates aProtectedResourcewhich can be used to manage resources.
-
Constructor Details
-
ProtectionResource
public ProtectionResource(Http http, ServerConfiguration serverConfiguration, Configuration configuration, TokenCallable pat)
-
-
Method Details
-
resource
Creates aProtectedResourcewhich can be used to manage resources.- Returns:
- a
ProtectedResource
-
permission
Creates aPermissionResourcewhich can be used to manage permission tickets.- Returns:
- a
PermissionResource
-
policy
-
introspectRequestingPartyToken
Introspects the givenrptusing the token introspection endpoint.- Parameters:
rpt- the rpt to introspect- Returns:
- the
TokenIntrospectionResponse
-