Class AbstractRegexpStringMatcher
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.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 voidGets the regular expression to match.protected booleanregexpCompare(String value) Matches the given value against the provided regular expression.voidsetPattern(Pattern thePattern) Sets thePatternfor matching to match.Methods inherited from class net.shibboleth.idp.attribute.filter.matcher.impl.AbstractMatcher
compareAttributeValue, getLogPrefix, getMatchingValuesMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.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 thePatternfor matching to match.- Parameters:
thePattern- the pattern to match
-
doInitialize
- Overrides:
doInitializein classAbstractMatcher- Throws:
ComponentInitializationException
-
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
-