@Entity public class ResourceServerEntity extends Object implements ResourceServer
Constructor and Description |
---|
ResourceServerEntity() |
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.
|
PolicyEnforcementMode |
getPolicyEnforcementMode()
Returns the
PolicyEnforcementMode configured for this instance. |
List<ResourceEntity> |
getResources() |
List<ScopeEntity> |
getScopes() |
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 |
setClientId(String clientId) |
void |
setId(String id) |
void |
setPolicyEnforcementMode(PolicyEnforcementMode policyEnforcementMode)
Defines a
PolicyEnforcementMode for this instance. |
void |
setResources(List<ResourceEntity> resources) |
void |
setScopes(List<ScopeEntity> scopes) |
public String getId()
ResourceServer
getId
in interface ResourceServer
public void setId(String id)
public String getClientId()
ResourceServer
getClientId
in interface ResourceServer
public void setClientId(String clientId)
public boolean isAllowRemoteResourceManagement()
ResourceServer
true
if the resource server is allowed to managed them remotelyisAllowRemoteResourceManagement
in interface ResourceServer
public void setAllowRemoteResourceManagement(boolean allowRemoteResourceManagement)
ResourceServer
setAllowRemoteResourceManagement
in interface ResourceServer
allowRemoteResourceManagement
- true
if the resource server is allowed to managed them remotelypublic PolicyEnforcementMode getPolicyEnforcementMode()
ResourceServer
PolicyEnforcementMode
configured for this instance.getPolicyEnforcementMode
in interface ResourceServer
PolicyEnforcementMode
configured for this instance.public void setPolicyEnforcementMode(PolicyEnforcementMode policyEnforcementMode)
ResourceServer
PolicyEnforcementMode
for this instance.setPolicyEnforcementMode
in interface ResourceServer
policyEnforcementMode
- one of the available options in PolicyEnforcementMode
public List<ResourceEntity> getResources()
public void setResources(List<ResourceEntity> resources)
public List<ScopeEntity> getScopes()
public void setScopes(List<ScopeEntity> scopes)
Copyright © 2016 JBoss by Red Hat. All rights reserved.