Class AbstractMatchesShibMDScopeMatcher
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.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.LoggerClass logger.private StringThe 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 voidprotected abstract StringReturn the string we want to compare with for the provided value.protected StringReturn a string which is to be prepended to all log messages.getMatchingValues(IdPAttribute attribute, AttributeFilterContext filterContext) Return thoseIdPAttributeValues which match this rule, or null if the matcher failed.Methods 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
-
LOG
@Nonnull 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:
doInitializein classAbstractIdentifiedInitializableComponent- Throws:
ComponentInitializationException
-
getMatchingValues
@Nonnull @Unmodifiable @NotLive public Set<IdPAttributeValue> getMatchingValues(@Nonnull IdPAttribute attribute, @Nonnull AttributeFilterContext filterContext) Return thoseIdPAttributeValues which match this rule, or null if the matcher failed.- Specified by:
getMatchingValuesin 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>' :"
-