Class AbstractMatchesShibMDScopeMatcher
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.saml.impl.AbstractMatchesShibMDScopeMatcher
- All Implemented Interfaces:
Matcher
,Component
,DestructableComponent
,IdentifiableComponent
,IdentifiedComponent
,InitializableComponent
- Direct Known Subclasses:
AttributeScopeMatchesShibMDScope
,AttributeValueMatchesShibMDScope
public abstract class AbstractMatchesShibMDScopeMatcher
extends AbstractIdentifiableInitializableComponent
implements Matcher
Base class for filters which rely on the issuer's <shibmd:scope> extensions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
Class logger.private String
The String used to prefix log message.Fields inherited from interface net.shibboleth.idp.attribute.filter.Matcher
MATCHER_FAILS, MATCHES_ALL, MATCHES_NONE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected abstract String
Return the string we want to compare with for the provided value.protected String
Return a string which is to be prepended to all log messages.getMatchingValues
(IdPAttribute attribute, AttributeFilterContext filterContext) Return thoseIdPAttributeValue
s which match this rule, or null if the matcher failed.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
-
LOG
private static final org.slf4j.Logger LOGClass logger. -
logPrefix
The String used to prefix log message.
-
-
Constructor Details
-
AbstractMatchesShibMDScopeMatcher
public AbstractMatchesShibMDScopeMatcher()
-
-
Method Details
-
doInitialize
- Overrides:
doInitialize
in classAbstractIdentifiedInitializableComponent
- Throws:
ComponentInitializationException
-
getMatchingValues
@Nonnull @NonnullElements @Unmodifiable public Set<IdPAttributeValue> getMatchingValues(@Nonnull IdPAttribute attribute, @Nonnull AttributeFilterContext filterContext) 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.
-
getCompareString
Return the string we want to compare with for the provided value.- Parameters:
value
- the vaue we are interested.- Returns:
- the string, or null if empty of not relevant.
-
getLogPrefix
Return a string which is to be prepended to all log messages.- Returns:
- "Attribute Filter '<filterID>' :"
-