Class AbstractEntityAttributeMatcher
java.lang.Object
net.shibboleth.metadata.dom.saml.mdattr.AbstractEntityAttributeMatcher
- All Implemented Interfaces:
Predicate<EntityAttributeFilteringStage.EntityAttributeContext>
- Direct Known Subclasses:
AbstractExactValueMatcher,MultiPredicateMatcher
@Immutable
public abstract class AbstractEntityAttributeMatcher
extends Object
implements Predicate<EntityAttributeFilteringStage.EntityAttributeContext>
Abstract implementation of
Predicate over EntityAttributeFilteringStage.EntityAttributeContext using
the template method pattern. The test(net.shibboleth.metadata.dom.saml.mdattr.EntityAttributeFilteringStage.EntityAttributeContext) method is broken down into matches
against the four components of the EntityAttributeFilteringStage.EntityAttributeContext. All four sub-matches
must succeed for the Predicate to be true
Where an implementation wishes to ignore a component (most commonly,
EntityAttributeFilteringStage.EntityAttributeContext.getRegistrationAuthority()) it can simply return true
in that template method.- Since:
- 0.9.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract booleanmatchAttributeName(String inputName) Match the name component of theEntityAttributeFilteringStage.EntityAttributeContext.protected abstract booleanmatchAttributeNameFormat(String inputNameFormat) Match the name format component of theEntityAttributeFilteringStage.EntityAttributeContext.protected abstract booleanmatchAttributeValue(String inputValue) Match the attribute value component of theEntityAttributeFilteringStage.EntityAttributeContext.protected abstract booleanmatchRegistrationAuthority(String inputRegistrationAuthority) Match the registration authority component of theEntityAttributeFilteringStage.EntityAttributeContext.boolean
-
Constructor Details
-
AbstractEntityAttributeMatcher
public AbstractEntityAttributeMatcher()
-
-
Method Details
-
matchAttributeValue
Match the attribute value component of theEntityAttributeFilteringStage.EntityAttributeContext.- Parameters:
inputValue- value component of the input context- Returns:
trueif and only if the value component matches
-
matchAttributeName
Match the name component of theEntityAttributeFilteringStage.EntityAttributeContext.- Parameters:
inputName- name component of the input context- Returns:
trueif and only if the name component matches
-
matchAttributeNameFormat
Match the name format component of theEntityAttributeFilteringStage.EntityAttributeContext.- Parameters:
inputNameFormat- name format component of the input context- Returns:
trueif and only if the name format component matches
-
matchRegistrationAuthority
Match the registration authority component of theEntityAttributeFilteringStage.EntityAttributeContext.- Parameters:
inputRegistrationAuthority- registration authority component of the input context- Returns:
trueif and only if the registration authority component matches
-
test
- Specified by:
testin interfacePredicate<EntityAttributeFilteringStage.EntityAttributeContext>
-