edu.internet2.middleware.shibboleth.common.attribute.filtering.provider.match.saml
Class AbstractEntityAttributeRegexMatchFunctor

java.lang.Object
  extended by edu.internet2.middleware.shibboleth.common.attribute.filtering.provider.match.basic.AbstractMatchFunctor
      extended by edu.internet2.middleware.shibboleth.common.attribute.filtering.provider.match.saml.AbstractEntityAttributeMatchFunctor
          extended by edu.internet2.middleware.shibboleth.common.attribute.filtering.provider.match.saml.AbstractEntityAttributeRegexMatchFunctor
All Implemented Interfaces:
MatchFunctor
Direct Known Subclasses:
AttributeIssuerEntityAttributeRegexMatchFunctor, AttributeRequesterEntityAttributeRegexMatchFunctor

public abstract class AbstractEntityAttributeRegexMatchFunctor
extends AbstractEntityAttributeMatchFunctor

Base class for match functors that perform an regular expression match of a given attribute string value against entity attribute value.


Field Summary
private  Pattern valueRegex
          The value of the entity attribute the entity must have.
 
Constructor Summary
AbstractEntityAttributeRegexMatchFunctor()
           
 
Method Summary
protected  boolean entityAttributeValueMatches(String entityAttributeValue)
          Checks whether the given entity attribute value matches the rules for particular implementation of this functor.
 Pattern getValueRegex()
          Gets the value of the entity attribute the entity must have.
 void setValueRegex(Pattern attributeValueRegex)
          Sets the value of the entity attribute the entity must have.
 
Methods inherited from class edu.internet2.middleware.shibboleth.common.attribute.filtering.provider.match.saml.AbstractEntityAttributeMatchFunctor
doEvaluatePolicyRequirement, doEvaluateValue, getEntityAttribute, getEntityMetadata, getName, getNameFormat, hasEntityAttribute, setName, setNameFormat
 
Methods inherited from class edu.internet2.middleware.shibboleth.common.attribute.filtering.provider.match.basic.AbstractMatchFunctor
evaluateDenyRule, evaluatePermitValue, evaluatePolicyRequirement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

valueRegex

private Pattern valueRegex
The value of the entity attribute the entity must have.

Constructor Detail

AbstractEntityAttributeRegexMatchFunctor

public AbstractEntityAttributeRegexMatchFunctor()
Method Detail

getValueRegex

public Pattern getValueRegex()
Gets the value of the entity attribute the entity must have.

Returns:
value of the entity attribute the entity must have

setValueRegex

public void setValueRegex(Pattern attributeValueRegex)
Sets the value of the entity attribute the entity must have.

Parameters:
attributeValueRegex - value of the entity attribute the entity must have

entityAttributeValueMatches

protected boolean entityAttributeValueMatches(String entityAttributeValue)
Checks whether the given entity attribute value matches the rules for particular implementation of this functor.

Specified by:
entityAttributeValueMatches in class AbstractEntityAttributeMatchFunctor
Parameters:
entityAttributeValue - the entity attribute value, never null
Returns:
true if the value matches, false if not


Copyright © 1999-2012. All Rights Reserved.