Class MultiPredicateMatcher
java.lang.Object
net.shibboleth.metadata.dom.saml.mdattr.AbstractEntityAttributeMatcher
net.shibboleth.metadata.dom.saml.mdattr.MultiPredicateMatcher
- All Implemented Interfaces:
Predicate<EntityAttributeFilteringStage.EntityAttributeContext>
An entity attribute matcher implementation that delegates each
component match to a different @{link Predicate}. Each such
Predicate defaults to one returning true so that
in most cases a minimum number of properties need to be set.
The individual Predicates operate over CharSequence
rather than String for generality.- Since:
- 0.9.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Predicate<CharSequence>Predicateto use to match the context's attribute name format.private Predicate<CharSequence>Predicateto use to match the context's attribute name.private Predicate<CharSequence>Predicateto use to match the context's registration authority.private Predicate<CharSequence>Predicateto use to match the context's attribute value. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Predicate<CharSequence>Gets thePredicatebeing used to match the context's attribute name format.final Predicate<CharSequence>Gets thePredicatebeing used to match the context's attribute name.final Predicate<CharSequence>Gets thePredicatebeing used to match the context's registration authority.final Predicate<CharSequence>Gets thePredicatebeing used to match the context's attribute value.protected 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.voidsetNameFormatPredicate(Predicate<CharSequence> predicate) Sets thePredicateto use to match the context's attribute name format.voidsetNamePredicate(Predicate<CharSequence> predicate) Sets thePredicateto use to match the context's attribute name.voidsetRegistrationAuthorityPredicate(Predicate<CharSequence> predicate) Sets thePredicateto use to match the context's registration authority.voidsetValuePredicate(Predicate<CharSequence> predicate) Sets thePredicateto use to match the context's attribute value.Methods inherited from class net.shibboleth.metadata.dom.saml.mdattr.AbstractEntityAttributeMatcher
test
-
Field Details
-
valuePredicate
Predicateto use to match the context's attribute value. -
namePredicate
Predicateto use to match the context's attribute name. -
nameFormatPredicate
Predicateto use to match the context's attribute name format. -
registrationAuthorityPredicate
Predicateto use to match the context's registration authority.
-
-
Constructor Details
-
MultiPredicateMatcher
public MultiPredicateMatcher()
-
-
Method Details
-
getValuePredicate
Gets thePredicatebeing used to match the context's attribute value.- Returns:
- the
Predicatebeing used to match the context's attribute value
-
setValuePredicate
Sets thePredicateto use to match the context's attribute value.- Parameters:
predicate- newPredicateto use to match the context's attribute value
-
getNamePredicate
Gets thePredicatebeing used to match the context's attribute name.- Returns:
- the
Predicatebeing used to match the context's attribute name
-
setNamePredicate
Sets thePredicateto use to match the context's attribute name.- Parameters:
predicate- newPredicateto use to match the context's attribute name
-
getNameFormatPredicate
Gets thePredicatebeing used to match the context's attribute name format.- Returns:
- the
Predicatebeing used to match the context's attribute name format
-
setNameFormatPredicate
Sets thePredicateto use to match the context's attribute name format.- Parameters:
predicate- newPredicateto use to match the context's attribute name format
-
getRegistrationAuthorityPredicate
Gets thePredicatebeing used to match the context's registration authority.- Returns:
- the
Predicatebeing used to match the context's registration authority
-
setRegistrationAuthorityPredicate
Sets thePredicateto use to match the context's registration authority.- Parameters:
predicate- newPredicateto use to match the context's registration authority
-
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
-