Class AbstractRegexpPolicyRule
java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
net.shibboleth.idp.attribute.filter.policyrule.impl.AbstractPolicyRule
net.shibboleth.idp.attribute.filter.policyrule.impl.AbstractRegexpPolicyRule
- All Implemented Interfaces:
PolicyRequirementRule
,Component
,DestructableComponent
,IdentifiableComponent
,IdentifiedComponent
,InitializableComponent
- Direct Known Subclasses:
AttributeIssuerRegexpPolicyRule
,AttributeRequesterRegexpPolicyRule
,PrincipalNameRegexpPolicyRule
,ProxiedRequesterRegexpPolicyRule
General
Matcher
for regexp comparison of strings in Attribute Filters.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.shibboleth.idp.attribute.filter.PolicyRequirementRule
PolicyRequirementRule.Tristate
-
Field Summary
FieldsFields inherited from interface net.shibboleth.idp.attribute.filter.PolicyRequirementRule
MATCHES_ALL, MATCHES_NONE, REQUIREMENT_RULE_FAILS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Gets the regular expression to match.protected PolicyRequirementRule.Tristate
regexpCompare
(String value) Matches the given value against the provided regular expression.void
setPattern
(Pattern thePattern) Sets thePattern
for matching to match.Methods inherited from class net.shibboleth.idp.attribute.filter.policyrule.impl.AbstractPolicyRule
getLogPrefix
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
setId
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
getId
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiedComponent
getId
Methods inherited from interface net.shibboleth.idp.attribute.filter.PolicyRequirementRule
matches
-
Field Details
-
pattern
Regular expression to match.
-
-
Constructor Details
-
AbstractRegexpPolicyRule
public AbstractRegexpPolicyRule()
-
-
Method Details
-
getRegularExpression
Gets the regular expression to match.- Returns:
- regular expression to match
-
setPattern
Sets thePattern
for matching to match.- Parameters:
thePattern
- the pattern to match
-
regexpCompare
Matches the given value against the provided regular expression.- Parameters:
value
- the value to evaluate- Returns:
- true if the value matches the given match string, false if not
-
doInitialize
- Overrides:
doInitialize
in classAbstractPolicyRule
- Throws:
ComponentInitializationException
-