Class AbstractStringMatcher
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.AbstractStringMatcher
- All Implemented Interfaces:
Matcher
,Component
,DestructableComponent
,IdentifiableComponent
,IdentifiedComponent
,InitializableComponent
- Direct Known Subclasses:
AttributeScopeStringMatcher
,AttributeValueStringMatcher
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
Whether the match evaluation is case sensitive.private String
String to match for a positive evaluation.Fields inherited from interface net.shibboleth.idp.attribute.filter.Matcher
MATCHER_FAILS, MATCHES_ALL, MATCHES_NONE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the string to match for a positive evaluation.boolean
Gets whether the match evaluation is case sensitive.boolean
Deprecated.in V4: Use isCaseSensitivevoid
setCaseSensitive
(boolean isCaseSensitive) Sets whether the match evaluation is case sensitive.void
setIgnoreCase
(boolean isCaseInsensitive) Deprecated.in V4: Use setCaseSensitivevoid
setMatchString
(String match) Sets the string to match for a positive evaluation.protected boolean
stringCompare
(String value) Matches the given value against the provided match string.Methods inherited from class net.shibboleth.idp.attribute.filter.matcher.impl.AbstractMatcher
compareAttributeValue, doInitialize, 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
Methods inherited from interface net.shibboleth.idp.attribute.filter.Matcher
getMatchingValues
-
Field Details
-
matchString
String to match for a positive evaluation. -
caseSensitive
private boolean caseSensitiveWhether the match evaluation is case sensitive.
-
-
Constructor Details
-
AbstractStringMatcher
public AbstractStringMatcher()
-
-
Method Details
-
getMatchString
Gets the string to match for a positive evaluation.- Returns:
- string to match for a positive evaluation
-
setMatchString
Sets the string to match for a positive evaluation.- Parameters:
match
- string to match for a positive evaluation
-
isIgnoreCase
Deprecated.in V4: Use isCaseSensitiveGets whether the match evaluation is case insensitive.- Returns:
- whether the match evaluation is case insensitive
-
setIgnoreCase
Deprecated.in V4: Use setCaseSensitiveSets whether the match evaluation is case insensitive.- Parameters:
isCaseInsensitive
- whether the match evaluation is case insensitive
-
isCaseSensitive
public boolean isCaseSensitive()Gets whether the match evaluation is case sensitive.- Returns:
- whether the match evaluation is case sensitive
- Since:
- 4.0.0
-
setCaseSensitive
public void setCaseSensitive(boolean isCaseSensitive) Sets whether the match evaluation is case sensitive.- Parameters:
isCaseSensitive
- whether the match evaluation is case sensitive
-
stringCompare
Matches the given value against the provided match string.- Parameters:
value
- the value to evaluate- Returns:
- true if the value matches the given match string, false if not
-