@ThreadSafe public abstract class AbstractEntityAttributeMatcher extends Object implements com.google.common.base.Predicate<EntityAttributeFilteringStage.EntityAttributeContext>
Predicate over EntityAttributeFilteringStage.EntityAttributeContext using
the template method pattern. The apply(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.| Constructor and Description |
|---|
AbstractEntityAttributeMatcher() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(EntityAttributeFilteringStage.EntityAttributeContext input) |
protected abstract boolean |
matchAttributeName(String inputName)
Match the name component of the
EntityAttributeFilteringStage.EntityAttributeContext. |
protected abstract boolean |
matchAttributeNameFormat(String inputNameFormat)
Match the name format component of the
EntityAttributeFilteringStage.EntityAttributeContext. |
protected abstract boolean |
matchAttributeValue(String inputValue)
Match the attribute value component of the
EntityAttributeFilteringStage.EntityAttributeContext. |
protected abstract boolean |
matchRegistrationAuthority(String inputRegistrationAuthority)
Match the registration authority component of the
EntityAttributeFilteringStage.EntityAttributeContext. |
protected abstract boolean matchAttributeValue(@Nonnull String inputValue)
EntityAttributeFilteringStage.EntityAttributeContext.inputValue - value component of the input contexttrue if and only if the value component matchesprotected abstract boolean matchAttributeName(@Nonnull String inputName)
EntityAttributeFilteringStage.EntityAttributeContext.inputName - name component of the input contexttrue if and only if the name component matchesprotected abstract boolean matchAttributeNameFormat(@Nonnull String inputNameFormat)
EntityAttributeFilteringStage.EntityAttributeContext.inputNameFormat - name format component of the input contexttrue if and only if the name format component matchesprotected abstract boolean matchRegistrationAuthority(@Nullable String inputRegistrationAuthority)
EntityAttributeFilteringStage.EntityAttributeContext.inputRegistrationAuthority - registration authority component of the input contexttrue if and only if the registration authority component matchespublic boolean apply(@Nonnull EntityAttributeFilteringStage.EntityAttributeContext input)
apply in interface com.google.common.base.Predicate<EntityAttributeFilteringStage.EntityAttributeContext>Copyright © 1999–2016. All rights reserved.