public class ResourceServerAdapter extends AbstractAuthorizationModel implements ResourceServer, JpaModel<ResourceServerEntity>
ResourceServer.SearchableFields| Constructor and Description |
|---|
ResourceServerAdapter(ResourceServerEntity entity,
javax.persistence.EntityManager em,
StoreFactory storeFactory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
DecisionStrategy |
getDecisionStrategy()
Returns the
DecisionStrategy configured for this instance. |
ResourceServerEntity |
getEntity() |
String |
getId()
Returns the unique identifier for this instance.
|
PolicyEnforcementMode |
getPolicyEnforcementMode()
Returns the
PolicyEnforcementMode configured for this instance. |
int |
hashCode() |
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 |
setDecisionStrategy(DecisionStrategy decisionStrategy)
Defines a
DecisionStrategy for this instance, indicating how permissions should be granted depending on the given
decisionStrategy. |
void |
setPolicyEnforcementMode(PolicyEnforcementMode enforcementMode)
Defines a
PolicyEnforcementMode for this instance. |
static ResourceServerEntity |
toEntity(javax.persistence.EntityManager em,
ResourceServer resource) |
throwExceptionIfReadonlypublic ResourceServerAdapter(ResourceServerEntity entity, javax.persistence.EntityManager em, StoreFactory storeFactory)
public ResourceServerEntity getEntity()
getEntity in interface JpaModel<ResourceServerEntity>public String getId()
ResourceServergetId 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 PolicyEnforcementModepublic DecisionStrategy getDecisionStrategy()
ResourceServerDecisionStrategy configured for this instance.getDecisionStrategy in interface ResourceServerpublic void setDecisionStrategy(DecisionStrategy decisionStrategy)
ResourceServerDecisionStrategy for this instance, indicating how permissions should be granted depending on the given
decisionStrategy.setDecisionStrategy in interface ResourceServerdecisionStrategy - the decision strategypublic static ResourceServerEntity toEntity(javax.persistence.EntityManager em, ResourceServer resource)
Copyright © 2021 JBoss by Red Hat. All rights reserved.