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
ConstructorDescriptionProtectionResource
(Http http, ServerConfiguration serverConfiguration, Configuration configuration, TokenCallable pat) -
Method Summary
Modifier and TypeMethodDescriptionIntrospects the givenrpt
using the token introspection endpoint.Creates aPermissionResource
which can be used to manage permission tickets.resource()
Creates aProtectedResource
which can be used to manage resources.
-
Constructor Details
-
ProtectionResource
public ProtectionResource(Http http, ServerConfiguration serverConfiguration, Configuration configuration, TokenCallable pat)
-
-
Method Details
-
resource
Creates aProtectedResource
which can be used to manage resources.- Returns:
- a
ProtectedResource
-
permission
Creates aPermissionResource
which can be used to manage permission tickets.- Returns:
- a
PermissionResource
-
policy
-
introspectRequestingPartyToken
Introspects the givenrpt
using the token introspection endpoint.- Parameters:
rpt
- the rpt to introspect- Returns:
- the
TokenIntrospectionResponse
-