|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nbi.xmlsec.xacml.builder.TargetMatchBuilder
Base Class to create target matches.
Field Summary | |
protected Object |
attribute
The attribute to compare against |
protected Evaluatable |
eval
The AttributeDesignator or AttributeSelector to be used to select attributes from the request context |
protected Function |
function
The Function that represents the MatchId |
protected int |
type
Indicating whether this class represents a SubjectMatch, ResourceMatch, or ActionMatch. |
Constructor Summary | |
protected |
TargetMatchBuilder(int type)
Creates an TargetMatchBuilder based on the type target match (SubjectMatch, ResourceMatch, or ActionMatch) to build. |
protected |
TargetMatchBuilder(int type,
Object attribute)
Creates an TargetMatchBuilder based on the type target match (SubjectMatch, ResourceMatch, or ActionMatch) to build. |
Method Summary | |
abstract AttributeValue |
createMatchValue()
Creates the attribute match value from the attribute. |
TargetMatch |
getInstance()
Creates a TargetMatch instance. |
protected void |
setAttribute(Object attribute)
Sets the attribute. |
void |
setMatchEvaluatable(AttributeDesignator eval)
Sets the AttributeDesignator to be used to select attributes from the request context. |
void |
setMatchEvaluatable(AttributeSelector eval)
Sets the AttributeSelector to be used to select attributes from the request context. |
void |
setMatchFunction(String functionId)
Sets the Function used to do the matching. |
void |
setMatchFunction(URI functionId)
Sets the Function used to do the matching. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int type
protected Function function
protected Evaluatable eval
protected Object attribute
Constructor Detail |
protected TargetMatchBuilder(int type)
type
- type of the target match.protected TargetMatchBuilder(int type, Object attribute)
type
- type of the target match.attribute
- attribute of the target match.Method Detail |
public TargetMatch getInstance()
TargetMatch
instance.
TargetMatch
instance.public void setMatchFunction(String functionId) throws UnknownIdentifierException, FunctionTypeException
functionId
- The name of the function.
UnknownIdentifierException
FunctionTypeException
FunctionFactory.createFunction(java.lang.String)
,
FunctionFactory.createFunction(java.lang.String)
public void setMatchFunction(URI functionId) throws UnknownIdentifierException, FunctionTypeException
functionId
- The name of the function.
UnknownIdentifierException
FunctionTypeException
FunctionFactory.createFunction(java.lang.String)
,
FunctionFactory.createFunction(java.lang.String)
public void setMatchEvaluatable(AttributeDesignator eval)
eval
- The AttributeDesignator to be usedpublic void setMatchEvaluatable(AttributeSelector eval)
eval
- The AttributeSelector to be usedpublic abstract AttributeValue createMatchValue()
protected void setAttribute(Object attribute)
attribute
- The attribute to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |