Package org.keycloak.authorization.model
Interface ResourceServer
- 
- All Known Implementing Classes:
- AbstractResourceServerModel,- MapResourceServerAdapter,- ResourceServerAdapter,- ResourceServerAdapter
 
 public interface ResourceServerRepresents a resource server, whose resources are managed and protected. A resource server is basically an existing client application in Keycloak that will also act as a resource server.- Author:
- Pedro Igor
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static classResourceServer.SearchableFields
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetClientId()Returns id of a client that thisResourceServeris associated withDecisionStrategygetDecisionStrategy()Returns theDecisionStrategyconfigured for this instance.StringgetId()Returns the unique identifier for this instance.PolicyEnforcementModegetPolicyEnforcementMode()Returns thePolicyEnforcementModeconfigured for this instance.RealmModelgetRealm()Returns reference of a realm that thisResourceServerbelongs to.booleanisAllowRemoteResourceManagement()Indicates if the resource server is allowed to manage its own resources remotely using the Protection API.voidsetAllowRemoteResourceManagement(boolean allowRemoteResourceManagement)Indicates if the resource server is allowed to manage its own resources remotely using the Protection API.voidsetDecisionStrategy(DecisionStrategy decisionStrategy)Defines aDecisionStrategyfor this instance, indicating how permissions should be granted depending on the givendecisionStrategy.voidsetPolicyEnforcementMode(PolicyEnforcementMode enforcementMode)Defines aPolicyEnforcementModefor this instance.
 
- 
- 
- 
Method Detail- 
getIdString getId() Returns the unique identifier for this instance.- Returns:
- the unique identifier for this instance
 
 - 
isAllowRemoteResourceManagementboolean isAllowRemoteResourceManagement() Indicates if the resource server is allowed to manage its own resources remotely using the Protection API.- Returns:
- trueif the resource server is allowed to managed them remotely
 
 - 
setAllowRemoteResourceManagementvoid setAllowRemoteResourceManagement(boolean allowRemoteResourceManagement) Indicates if the resource server is allowed to manage its own resources remotely using the Protection API.- Parameters:
- allowRemoteResourceManagement-- trueif the resource server is allowed to managed them remotely
 
 - 
getPolicyEnforcementModePolicyEnforcementMode getPolicyEnforcementMode() Returns thePolicyEnforcementModeconfigured for this instance.- Returns:
- the PolicyEnforcementModeconfigured for this instance.
 
 - 
setPolicyEnforcementModevoid setPolicyEnforcementMode(PolicyEnforcementMode enforcementMode) Defines aPolicyEnforcementModefor this instance.- Parameters:
- enforcementMode- one of the available options in- PolicyEnforcementMode
 
 - 
setDecisionStrategyvoid setDecisionStrategy(DecisionStrategy decisionStrategy) Defines aDecisionStrategyfor this instance, indicating how permissions should be granted depending on the givendecisionStrategy.- Parameters:
- decisionStrategy- the decision strategy
 
 - 
getDecisionStrategyDecisionStrategy getDecisionStrategy() Returns theDecisionStrategyconfigured for this instance.- Returns:
- the decision strategy
 
 - 
getClientIdString getClientId() Returns id of a client that thisResourceServeris associated with- Returns:
- id of client
 
 - 
getRealmRealmModel getRealm() Returns reference of a realm that thisResourceServerbelongs to.- Returns:
- reference of a realm
 
 
- 
 
-