Class AbstractRegexpStringMatcher
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.matcher.impl.AbstractMatcher
net.shibboleth.idp.attribute.filter.matcher.impl.AbstractRegexpStringMatcher
- All Implemented Interfaces:
Matcher
,Component
,DestructableComponent
,IdentifiableComponent
,IdentifiedComponent
,InitializableComponent
- Direct Known Subclasses:
AttributeScopeRegexpMatcher
,AttributeValueRegexpMatcher
General
Matcher
for regexp comparison of strings in Attribute
Filters.-
Field Summary
FieldsFields inherited from interface net.shibboleth.idp.attribute.filter.Matcher
MATCHER_FAILS, MATCHES_ALL, MATCHES_NONE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Gets the regular expression to match.protected boolean
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.matcher.impl.AbstractMatcher
compareAttributeValue, getLogPrefix, getMatchingValues
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
-
Field Details
-
pattern
Regular expression to match.
-
-
Constructor Details
-
AbstractRegexpStringMatcher
public AbstractRegexpStringMatcher()
-
-
Method Details
-
getRegularExpression
Gets the regular expression to match.- Returns:
- the regular expression
-
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 classAbstractMatcher
- Throws:
ComponentInitializationException
-