Class AbstractExactValueMatcher
java.lang.Object
net.shibboleth.metadata.dom.saml.mdattr.AbstractEntityAttributeMatcher
net.shibboleth.metadata.dom.saml.mdattr.AbstractExactValueMatcher
- All Implemented Interfaces:
Predicate<EntityAttributeFilteringStage.EntityAttributeContext>
- Direct Known Subclasses:
AssuranceCertificationMatcher,EntityCategoryMatcher,EntityCategorySupportMatcher
An abstract entity attribute matcher implementation that matches an exact
combination of value, name and name format. Optionally, a registration
authority value may also be matched against.
- Since:
- 0.9.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractExactValueMatcher(String matchValue, String matchName, String matchNameFormat, String matchRegAuth) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanmatchAttributeName(String inputName) Match the name component of theEntityAttributeFilteringStage.EntityAttributeContext.protected booleanmatchAttributeNameFormat(String inputNameFormat) Match the name format component of theEntityAttributeFilteringStage.EntityAttributeContext.protected booleanmatchAttributeValue(String inputValue) Match the attribute value component of theEntityAttributeFilteringStage.EntityAttributeContext.protected booleanmatchRegistrationAuthority(String inputRegistrationAuthority) Match the registration authority component of theEntityAttributeFilteringStage.EntityAttributeContext.Methods inherited from class net.shibboleth.metadata.dom.saml.mdattr.AbstractEntityAttributeMatcher
test
-
Field Details
-
value
The attribute value to match. -
name
The attributeNameto match. -
nameFormat
The attributeNameFormatto match. -
registrationAuthority
Registration authority to match against, ornull.
-
-
Constructor Details
-
AbstractExactValueMatcher
public AbstractExactValueMatcher(@Nonnull String matchValue, @Nonnull String matchName, @Nonnull String matchNameFormat, @Nullable String matchRegAuth) Constructor.- Parameters:
matchValue- attribute value to matchmatchName- attribute name to matchmatchNameFormat- attribute name format to matchmatchRegAuth- entity registration authority to match, ornull
-
-
Method Details
-
matchAttributeValue
Description copied from class:AbstractEntityAttributeMatcherMatch the attribute value component of theEntityAttributeFilteringStage.EntityAttributeContext.- Specified by:
matchAttributeValuein classAbstractEntityAttributeMatcher- Parameters:
inputValue- value component of the input context- Returns:
trueif and only if the value component matches
-
matchAttributeName
Description copied from class:AbstractEntityAttributeMatcherMatch the name component of theEntityAttributeFilteringStage.EntityAttributeContext.- Specified by:
matchAttributeNamein classAbstractEntityAttributeMatcher- Parameters:
inputName- name component of the input context- Returns:
trueif and only if the name component matches
-
matchAttributeNameFormat
Description copied from class:AbstractEntityAttributeMatcherMatch the name format component of theEntityAttributeFilteringStage.EntityAttributeContext.- Specified by:
matchAttributeNameFormatin classAbstractEntityAttributeMatcher- Parameters:
inputNameFormat- name format component of the input context- Returns:
trueif and only if the name format component matches
-
matchRegistrationAuthority
Description copied from class:AbstractEntityAttributeMatcherMatch the registration authority component of theEntityAttributeFilteringStage.EntityAttributeContext.- Specified by:
matchRegistrationAuthorityin classAbstractEntityAttributeMatcher- Parameters:
inputRegistrationAuthority- registration authority component of the input context- Returns:
trueif and only if the registration authority component matches
-