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 SummaryConstructors Constructor Description ProtectionResource(Http http, ServerConfiguration serverConfiguration, Configuration configuration, TokenCallable pat)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenIntrospectionResponseintrospectRequestingPartyToken(String rpt)Introspects the givenrptusing the token introspection endpoint.PermissionResourcepermission()Creates aPermissionResourcewhich can be used to manage permission tickets.PolicyResourcepolicy(String resourceId)ProtectedResourceresource()Creates aProtectedResourcewhich can be used to manage resources.
 
- 
- 
- 
Constructor Detail- 
ProtectionResourcepublic ProtectionResource(Http http, ServerConfiguration serverConfiguration, Configuration configuration, TokenCallable pat) 
 
- 
 - 
Method Detail- 
resourcepublic ProtectedResource resource() Creates aProtectedResourcewhich can be used to manage resources.- Returns:
- a ProtectedResource
 
 - 
permissionpublic PermissionResource permission() Creates aPermissionResourcewhich can be used to manage permission tickets.- Returns:
- a PermissionResource
 
 - 
policypublic PolicyResource policy(String resourceId) 
 - 
introspectRequestingPartyTokenpublic TokenIntrospectionResponse introspectRequestingPartyToken(String rpt) Introspects the givenrptusing the token introspection endpoint.- Parameters:
- rpt- the rpt to introspect
- Returns:
- the TokenIntrospectionResponse
 
 
- 
 
-