public interface Policy
Modifier and Type | Method and Description |
---|---|
void |
addAssociatedPolicy(Policy associatedPolicy) |
void |
addResource(Resource resource) |
void |
addScope(Scope scope) |
<P extends Policy> |
getAssociatedPolicies()
Returns the
Policy instances associated with this policy and used to evaluate authorization decisions when
this policy applies. |
Map<String,String> |
getConfig()
Returns a
Map holding string-based key/value pairs representing any additional configuration for this policy. |
DecisionStrategy |
getDecisionStrategy()
Returns the
DecisionStrategy for this policy. |
String |
getDescription()
Returns the description of this policy.
|
String |
getId()
Returns the unique identifier for this instance.
|
Logic |
getLogic()
Returns the
Logic for this policy. |
String |
getName()
Returns the name of this policy.
|
<R extends Resource> |
getResources()
Returns the
Resource instances where this policy applies. |
<R extends ResourceServer> |
getResourceServer()
Returns the
ResourceServer where this policy belongs to. |
<S extends Scope> |
getScopes()
Returns the
Scope instances where this policy applies. |
String |
getType()
Returns the type of this policy.
|
void |
removeAssociatedPolicy(Policy associatedPolicy) |
void |
removeResource(Resource resource) |
void |
removeScope(Scope scope) |
void |
setConfig(Map<String,String> config)
Sets a
Map with string-based key/value pairs representing any additional configuration for this policy. |
void |
setDecisionStrategy(DecisionStrategy decisionStrategy)
Sets the {DecisionStrategy} for this policy.
|
void |
setDescription(String description)
Sets the description for this policy.
|
void |
setLogic(Logic logic)
Sets the {Logic} for this policy.
|
void |
setName(String name)
Sets an unique name to this policy.
|
String getId()
String getType()
DecisionStrategy getDecisionStrategy()
DecisionStrategy
for this policy.void setDecisionStrategy(DecisionStrategy decisionStrategy)
Logic getLogic()
Logic
for this policy.void setLogic(Logic logic)
Map<String,String> getConfig()
Map
holding string-based key/value pairs representing any additional configuration for this policy.void setConfig(Map<String,String> config)
Map
with string-based key/value pairs representing any additional configuration for this policy.String getName()
void setName(String name)
name
- an unique nameString getDescription()
void setDescription(String description)
description
- a description<R extends ResourceServer> R getResourceServer()
ResourceServer
where this policy belongs to.<P extends Policy> Set<P> getAssociatedPolicies()
Policy
instances associated with this policy and used to evaluate authorization decisions when
this policy applies.<R extends Resource> Set<R> getResources()
Resource
instances where this policy applies.<S extends Scope> Set<S> getScopes()
Scope
instances where this policy applies.void addScope(Scope scope)
void removeScope(Scope scope)
void addAssociatedPolicy(Policy associatedPolicy)
void removeAssociatedPolicy(Policy associatedPolicy)
void addResource(Resource resource)
void removeResource(Resource resource)
Copyright © 2016 JBoss by Red Hat. All rights reserved.