Class ProtectionResource
- java.lang.Object
-
- org.keycloak.authorization.client.resource.ProtectionResource
-
public class ProtectionResource extends Object
An entry point to access the Protection API endpoints.- Author:
- Pedro Igor
-
-
Constructor Summary
Constructors Constructor Description ProtectionResource(Http http, ServerConfiguration serverConfiguration, Configuration configuration, TokenCallable pat)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenIntrospectionResponse
introspectRequestingPartyToken(String rpt)
Introspects the givenrpt
using the token introspection endpoint.PermissionResource
permission()
Creates aPermissionResource
which can be used to manage permission tickets.PolicyResource
policy(String resourceId)
ProtectedResource
resource()
Creates aProtectedResource
which can be used to manage resources.
-
-
-
Constructor Detail
-
ProtectionResource
public ProtectionResource(Http http, ServerConfiguration serverConfiguration, Configuration configuration, TokenCallable pat)
-
-
Method Detail
-
resource
public ProtectedResource resource()
Creates aProtectedResource
which can be used to manage resources.- Returns:
- a
ProtectedResource
-
permission
public PermissionResource permission()
Creates aPermissionResource
which can be used to manage permission tickets.- Returns:
- a
PermissionResource
-
policy
public PolicyResource policy(String resourceId)
-
introspectRequestingPartyToken
public TokenIntrospectionResponse introspectRequestingPartyToken(String rpt)
Introspects the givenrpt
using the token introspection endpoint.- Parameters:
rpt
- the rpt to introspect- Returns:
- the
TokenIntrospectionResponse
-
-