public class ResourceServerAdapter extends AbstractMongoAdapter<ResourceServerEntity> implements ResourceServer
invocationContext| Constructor and Description |
|---|
ResourceServerAdapter(ResourceServerEntity entity,
MongoStoreInvocationContext invocationContext) |
| Modifier and Type | Method and Description |
|---|---|
String |
getClientId()
Returns the identifier of the client application (which already exists in Keycloak) that is also acting as a resource
server.
|
String |
getId()
Returns the unique identifier for this instance.
|
protected ResourceServerEntity |
getMongoEntity() |
PolicyEnforcementMode |
getPolicyEnforcementMode()
Returns the
PolicyEnforcementMode configured for this instance. |
boolean |
isAllowRemoteResourceManagement()
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 |
setPolicyEnforcementMode(PolicyEnforcementMode enforcementMode)
Defines a
PolicyEnforcementMode for this instance. |
equals, getMongoStore, hashCode, updateMongoEntitypublic ResourceServerAdapter(ResourceServerEntity entity, MongoStoreInvocationContext invocationContext)
public String getId()
ResourceServergetId in interface ResourceServerpublic String getClientId()
ResourceServergetClientId in interface ResourceServerpublic boolean isAllowRemoteResourceManagement()
ResourceServertrue if the resource server is allowed to managed them remotelyisAllowRemoteResourceManagement in interface ResourceServerpublic void setAllowRemoteResourceManagement(boolean allowRemoteResourceManagement)
ResourceServersetAllowRemoteResourceManagement in interface ResourceServerallowRemoteResourceManagement - true if the resource server is allowed to managed them remotelypublic PolicyEnforcementMode getPolicyEnforcementMode()
ResourceServerPolicyEnforcementMode configured for this instance.getPolicyEnforcementMode in interface ResourceServerPolicyEnforcementMode configured for this instance.public void setPolicyEnforcementMode(PolicyEnforcementMode enforcementMode)
ResourceServerPolicyEnforcementMode for this instance.setPolicyEnforcementMode in interface ResourceServerenforcementMode - one of the available options in PolicyEnforcementModeprotected ResourceServerEntity getMongoEntity()
getMongoEntity in class AbstractMongoAdapter<ResourceServerEntity>Copyright © 2016 JBoss by Red Hat. All rights reserved.