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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.authorization.model.ResourceServer
ResourceServer.SearchableFields
-
Field Summary
Fields inherited from class org.keycloak.models.map.authorization.adapter.AbstractResourceServerModel
entity
Fields inherited from class org.keycloak.authorization.model.AbstractAuthorizationModel
storeFactory
-
Constructor Summary
ConstructorDescriptionMapResourceServerAdapter
(RealmModel realmModel, MapResourceServerEntity entity, StoreFactory storeFactory) -
Method Summary
Modifier and TypeMethodDescriptionReturns id of a client that thisResourceServer
is associated withReturns theDecisionStrategy
configured for this instance.getId()
Returns the unique identifier for this instance.Returns thePolicyEnforcementMode
configured for this instance.getRealm()
Returns reference of a realm that thisResourceServer
belongs to.boolean
Indicates if the resource server is allowed to manage its own resources remotely using the Protection API.void
setAllowRemoteResourceManagement
(boolean allowRemoteResourceManagement) Indicates if the resource server is allowed to manage its own resources remotely using the Protection API.void
setDecisionStrategy
(DecisionStrategy decisionStrategy) Defines aDecisionStrategy
for this instance, indicating how permissions should be granted depending on the givendecisionStrategy
.void
setPolicyEnforcementMode
(PolicyEnforcementMode enforcementMode) Defines aPolicyEnforcementMode
for this instance.toString()
Methods inherited from class org.keycloak.models.map.authorization.adapter.AbstractResourceServerModel
equals, hashCode
Methods inherited from class org.keycloak.authorization.model.AbstractAuthorizationModel
throwExceptionIfReadonly
-
Constructor Details
-
MapResourceServerAdapter
public MapResourceServerAdapter(RealmModel realmModel, MapResourceServerEntity entity, StoreFactory storeFactory)
-
-
Method Details
-
getId
Description copied from interface:ResourceServer
Returns the unique identifier for this instance.- Returns:
- the unique identifier for this instance
-
isAllowRemoteResourceManagement
public boolean isAllowRemoteResourceManagement()Description copied from interface:ResourceServer
Indicates if the resource server is allowed to manage its own resources remotely using the Protection API.- Returns:
true
if the resource server is allowed to managed them remotely
-
setAllowRemoteResourceManagement
public void setAllowRemoteResourceManagement(boolean allowRemoteResourceManagement) Description copied from interface:ResourceServer
Indicates if the resource server is allowed to manage its own resources remotely using the Protection API.- Parameters:
allowRemoteResourceManagement
-true
if the resource server is allowed to managed them remotely
-
getPolicyEnforcementMode
Description copied from interface:ResourceServer
Returns thePolicyEnforcementMode
configured for this instance.- Returns:
- the
PolicyEnforcementMode
configured for this instance.
-
setPolicyEnforcementMode
Description copied from interface:ResourceServer
Defines aPolicyEnforcementMode
for this instance.- Parameters:
enforcementMode
- one of the available options inPolicyEnforcementMode
-
setDecisionStrategy
Description copied from interface:ResourceServer
Defines aDecisionStrategy
for this instance, indicating how permissions should be granted depending on the givendecisionStrategy
.- Parameters:
decisionStrategy
- the decision strategy
-
getDecisionStrategy
Description copied from interface:ResourceServer
Returns theDecisionStrategy
configured for this instance.- Returns:
- the decision strategy
-
getClientId
Description copied from interface:ResourceServer
Returns id of a client that thisResourceServer
is associated with- Returns:
- id of client
-
getRealm
Description copied from interface:ResourceServer
Returns reference of a realm that thisResourceServer
belongs to.- Returns:
- reference of a realm
-
toString
-