Class MapResourceServerAdapter
- java.lang.Object
- 
- org.keycloak.authorization.model.AbstractAuthorizationModel
- 
- org.keycloak.models.map.authorization.adapter.AbstractResourceServerModel<MapResourceServerEntity>
- 
- org.keycloak.models.map.authorization.adapter.MapResourceServerAdapter
 
 
 
- 
- All Implemented Interfaces:
- ResourceServer
 
 public class MapResourceServerAdapter extends AbstractResourceServerModel<MapResourceServerEntity> 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.keycloak.authorization.model.ResourceServerResourceServer.SearchableFields
 
- 
 - 
Field Summary- 
Fields inherited from class org.keycloak.models.map.authorization.adapter.AbstractResourceServerModelentity
 - 
Fields inherited from class org.keycloak.authorization.model.AbstractAuthorizationModelstoreFactory
 
- 
 - 
Constructor SummaryConstructors Constructor Description MapResourceServerAdapter(RealmModel realmModel, MapResourceServerEntity entity, StoreFactory storeFactory)
 - 
Method SummaryAll Methods Instance Methods Concrete 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.StringtoString()- 
Methods inherited from class org.keycloak.models.map.authorization.adapter.AbstractResourceServerModelequals, hashCode
 - 
Methods inherited from class org.keycloak.authorization.model.AbstractAuthorizationModelthrowExceptionIfReadonly
 
- 
 
- 
- 
- 
Constructor Detail- 
MapResourceServerAdapterpublic MapResourceServerAdapter(RealmModel realmModel, MapResourceServerEntity entity, StoreFactory storeFactory) 
 
- 
 - 
Method Detail- 
getIdpublic String getId() Description copied from interface:ResourceServerReturns the unique identifier for this instance.- Returns:
- the unique identifier for this instance
 
 - 
isAllowRemoteResourceManagementpublic boolean isAllowRemoteResourceManagement() Description copied from interface:ResourceServerIndicates 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
 
 - 
setAllowRemoteResourceManagementpublic void setAllowRemoteResourceManagement(boolean allowRemoteResourceManagement) Description copied from interface:ResourceServerIndicates 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
 
 - 
getPolicyEnforcementModepublic PolicyEnforcementMode getPolicyEnforcementMode() Description copied from interface:ResourceServerReturns thePolicyEnforcementModeconfigured for this instance.- Returns:
- the PolicyEnforcementModeconfigured for this instance.
 
 - 
setPolicyEnforcementModepublic void setPolicyEnforcementMode(PolicyEnforcementMode enforcementMode) Description copied from interface:ResourceServerDefines aPolicyEnforcementModefor this instance.- Parameters:
- enforcementMode- one of the available options in- PolicyEnforcementMode
 
 - 
setDecisionStrategypublic void setDecisionStrategy(DecisionStrategy decisionStrategy) Description copied from interface:ResourceServerDefines aDecisionStrategyfor this instance, indicating how permissions should be granted depending on the givendecisionStrategy.- Parameters:
- decisionStrategy- the decision strategy
 
 - 
getDecisionStrategypublic DecisionStrategy getDecisionStrategy() Description copied from interface:ResourceServerReturns theDecisionStrategyconfigured for this instance.- Returns:
- the decision strategy
 
 - 
getClientIdpublic String getClientId() Description copied from interface:ResourceServerReturns id of a client that thisResourceServeris associated with- Returns:
- id of client
 
 - 
getRealmpublic RealmModel getRealm() Description copied from interface:ResourceServerReturns reference of a realm that thisResourceServerbelongs to.- Returns:
- reference of a realm
 
 
- 
 
-