public class AttributeInMetadataMatchFunctor extends AbstractMatchFunctor
Modifier and Type | Field and Description |
---|---|
private org.slf4j.Logger |
log
Class logger.
|
private boolean |
matchIfMetadataSilent
Whether to return a match if the metadata does not contain an ACS descriptor.
|
private boolean |
onlyIfRequired
Whether optionally requested attributes should be matched.
|
Constructor and Description |
---|
AttributeInMetadataMatchFunctor() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
doEvaluatePolicyRequirement(ShibbolethFilteringContext filterContext)
Evaluates this matching criteria.
|
protected boolean |
doEvaluateValue(ShibbolethFilteringContext filterContext,
String attributeId,
Object attributeValue)
Evaluates this matching criteria.
|
private RequestedAttribute |
findInMetadata(AttributeConsumingService service,
AttributeEncoder encoder)
Locates a RequestedAttribute object in metadata that matches the eventual "to be encoded" name
represented by the encoder.
|
boolean |
isMatchIfMetadataSilent()
Gets whether to matched if the metadata contains no AttributeConsumingService.
|
boolean |
isOnlyIfRequired()
Gets whether optionally requested attributes should be matched.
|
private boolean |
match(XMLObject xmlObj,
String attributeValue)
Checks whether an XMLObject's "value" matches a candidate value.
|
void |
setMatchIfMetadataSilent(boolean flag)
Sets whether to match if the metadata contains no AttributeConsumingService.
|
void |
setOnlyIfRequired(boolean flag)
Sets whether optionally requested attributes should be matched.
|
evaluateDenyRule, evaluatePermitValue, evaluatePolicyRequirement
private final org.slf4j.Logger log
private boolean onlyIfRequired
private boolean matchIfMetadataSilent
public boolean isOnlyIfRequired()
public void setOnlyIfRequired(boolean flag)
flag
- whether optionally requested attributes should be matchedpublic boolean isMatchIfMetadataSilent()
public void setMatchIfMetadataSilent(boolean flag)
flag
- whether to match if the metadata contains no AttributeConsumingServiceprotected boolean doEvaluatePolicyRequirement(ShibbolethFilteringContext filterContext) throws FilterProcessingException
doEvaluatePolicyRequirement
in class AbstractMatchFunctor
filterContext
- current filtering contextFilterProcessingException
- thrown if the function can not be evaluatedprotected boolean doEvaluateValue(ShibbolethFilteringContext filterContext, String attributeId, Object attributeValue) throws FilterProcessingException
doEvaluateValue
in class AbstractMatchFunctor
filterContext
- the current filtering contextattributeId
- ID of the attribute being evaluatedattributeValue
- value of the attribute being evaluatedFilterProcessingException
- thrown if the function can not be evaluatedprivate RequestedAttribute findInMetadata(AttributeConsumingService service, AttributeEncoder encoder)
service
- the metadata descriptor to searchencoder
- the attribute encoder to base the search onCopyright © 1999-2014. All Rights Reserved.