|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.xtreemos.xosd.security.vops.xacml.policy.PolicyRule
public class PolicyRule
Class for creating policy rules.
Field Summary | |
---|---|
private PolicyRuleCondition |
condition
|
private java.lang.String |
description
|
int |
effect
|
(package private) static org.apache.log4j.Logger |
logger
|
private java.net.URI |
ruleId
|
private PolicyTarget |
target
|
Constructor Summary | |
---|---|
PolicyRule()
|
|
PolicyRule(java.net.URI ruleId,
int effect,
PolicyTarget pt,
java.lang.String description)
|
|
PolicyRule(java.net.URI ruleId,
int effect,
java.lang.String description)
|
Method Summary | |
---|---|
static PolicyRule |
createPolicyRule(java.util.Hashtable<java.lang.String,java.lang.Object> xmlForm)
Creates rule based on the xmlForm passed as an argument. |
static PolicyRuleCondition |
getCondition(java.util.Hashtable<java.lang.String,java.lang.Object> jsdlHashTable)
Extracts from JSDL attributes for request. |
com.sun.xacml.Rule |
getRule()
Converts rule to XACML's Rule object. |
java.net.URI |
getRuleId()
|
PolicyTarget |
getTarget()
Return target used in this Rule |
boolean |
matchTarget(com.sun.xacml.ctx.RequestCtx req,
boolean matchResource)
This method matches context of the request with the current policy. |
void |
parse(XMLSearchEngine xse,
java.util.Hashtable<java.lang.String,java.lang.Object> inData)
This method parses policy rule. |
PolicyRuleCondition |
setCondition(java.util.Hashtable<java.lang.String,java.lang.Object> jsdlHashTable)
Extracts from JSDL attributes for request. |
void |
setCondition(PolicyRuleCondition prc)
Sets rule's target |
void |
setTarget(PolicyTarget pt)
Sets rule's target |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final org.apache.log4j.Logger logger
private java.net.URI ruleId
private java.lang.String description
private PolicyTarget target
private PolicyRuleCondition condition
public int effect
Constructor Detail |
---|
public PolicyRule()
public PolicyRule(java.net.URI ruleId, int effect, java.lang.String description)
ruleId
- effect
- description
- public PolicyRule(java.net.URI ruleId, int effect, PolicyTarget pt, java.lang.String description)
ruleId
- effect
- pt
- description
- Method Detail |
---|
public java.net.URI getRuleId()
public PolicyTarget getTarget()
public com.sun.xacml.Rule getRule() throws java.lang.Exception
java.lang.Exception
public void setTarget(PolicyTarget pt)
public void setCondition(PolicyRuleCondition prc)
public void parse(XMLSearchEngine xse, java.util.Hashtable<java.lang.String,java.lang.Object> inData) throws java.lang.Exception
xse
- inData
-
java.lang.Exception
public boolean matchTarget(com.sun.xacml.ctx.RequestCtx req, boolean matchResource)
context
- matchResource
- is set to true if user wants to filter rules by resources
public static PolicyRuleCondition getCondition(java.util.Hashtable<java.lang.String,java.lang.Object> jsdlHashTable) throws java.lang.Exception
jsdlHashTable
- Input from XMLValidatorAndParser class.
java.lang.Exception
public PolicyRuleCondition setCondition(java.util.Hashtable<java.lang.String,java.lang.Object> jsdlHashTable) throws java.lang.Exception
jsdlHashTable
- Input from XMLValidatorAndParser class.
java.lang.Exception
public static PolicyRule createPolicyRule(java.util.Hashtable<java.lang.String,java.lang.Object> xmlForm) throws java.lang.Exception
xmlForm
- Hashtable containing the information of the xmlForm
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |