Class NotMatcher
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.logic.impl.NotMatcher
- All Implemented Interfaces:
Matcher
,Component
,DestructableComponent
,IdentifiableComponent
,IdentifiedComponent
,InitializableComponent
@ThreadSafe
public final class NotMatcher
extends AbstractIdentifiableInitializableComponent
implements Matcher
-
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
getMatchingValues
(IdPAttribute attribute, AttributeFilterContext filterContext) A given attribute value is considered to have matched if it is not returned by the composedMatcher
.Get the matcher that is being negated.void
setNegation
(Matcher valueMatcher) Constructor.toString()
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, wait, wait, wait
Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiedComponent
getId
-
Field Details
-
negatedMatcher
The matcher we are negating.
-
-
Constructor Details
-
NotMatcher
public NotMatcher()
-
-
Method Details
-
setNegation
Constructor.- Parameters:
valueMatcher
- attribute value matcher to be negated
-
getNegatedMatcher
Get the matcher that is being negated.- Returns:
- matcher that is being negated
-
getMatchingValues
@Nullable @NonnullElements public Set<IdPAttributeValue> getMatchingValues(@Nonnull IdPAttribute attribute, @Nonnull AttributeFilterContext filterContext) A given attribute value is considered to have matched if it is not returned by the composedMatcher
. Return thoseIdPAttributeValue
s which match this rule, or null if the matcher failed.- Specified by:
getMatchingValues
in interfaceMatcher
- Parameters:
attribute
- the attribute under question.filterContext
- the filter context- Returns:
- The result of this rule. Null if we failed.
-
doInitialize
- Overrides:
doInitialize
in classAbstractIdentifiedInitializableComponent
- Throws:
ComponentInitializationException
-
toString
-