Class MappedEntityAttributesPredicate.EntityAttributesMatcher
- java.lang.Object
-
- net.shibboleth.idp.saml.profile.logic.MappedEntityAttributesPredicate.EntityAttributesMatcher
-
- All Implemented Interfaces:
Predicate<EntityAttributesPredicate.Candidate>,Predicate<EntityAttributesPredicate.Candidate>
- Enclosing class:
- MappedEntityAttributesPredicate
private class MappedEntityAttributesPredicate.EntityAttributesMatcher extends Object implements Predicate<EntityAttributesPredicate.Candidate>
Determines whether anEntityAttributesPredicate.Candidatecriterion is satisfied by the mapped attributes in an entity's metadata.
-
-
Field Summary
Fields Modifier and Type Field Description private Multimap<String,? extends IdPAttribute>attributesPopulation to evaluate for a match.
-
Constructor Summary
Constructors Constructor Description EntityAttributesMatcher(Multimap<String,? extends IdPAttribute> attrs)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private StringattributeValueToString(IdPAttributeValue value)Convert an IdPAttributeValue to a String if the type is recognized.booleantest(EntityAttributesPredicate.Candidate input)
-
-
-
Field Detail
-
attributes
@Nonnull private final Multimap<String,? extends IdPAttribute> attributes
Population to evaluate for a match.
-
-
Constructor Detail
-
EntityAttributesMatcher
public EntityAttributesMatcher(@Nonnull @NonnullElements Multimap<String,? extends IdPAttribute> attrs)
Constructor.- Parameters:
attrs- population to evaluate for a match
-
-
Method Detail
-
test
public boolean test(@Nonnull EntityAttributesPredicate.Candidate input)- Specified by:
testin interfacePredicate<EntityAttributesPredicate.Candidate>
-
attributeValueToString
@Nullable private String attributeValueToString(@Nonnull IdPAttributeValue value)
Convert an IdPAttributeValue to a String if the type is recognized.- Parameters:
value- object to convert- Returns:
- the converted value, or null
-
-