Class EntityAttributesPredicate.EntityAttributesMatcher
- java.lang.Object
-
- org.opensaml.saml.common.profile.logic.EntityAttributesPredicate.EntityAttributesMatcher
-
- All Implemented Interfaces:
Predicate<EntityAttributesPredicate.Candidate>
,net.shibboleth.utilities.java.support.logic.Predicate<EntityAttributesPredicate.Candidate>
- Enclosing class:
- EntityAttributesPredicate
private class EntityAttributesPredicate.EntityAttributesMatcher extends Object implements net.shibboleth.utilities.java.support.logic.Predicate<EntityAttributesPredicate.Candidate>
Determines whether anEntityAttributesPredicate.Candidate
criterion is satisfied by theAttribute
s in anEntityAttributes
extension.
-
-
Field Summary
Fields Modifier and Type Field Description private Collection<Attribute>
attributes
Population to evaluate for a match.
-
Constructor Summary
Constructors Constructor Description EntityAttributesMatcher(Collection<Attribute> attrs)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) List<String>
getPossibleAttributeValuesAsStrings(Attribute attribute)
Get all possible strings values for the attribute.boolean
test(EntityAttributesPredicate.Candidate input)
private List<String>
xmlObjectToStrings(org.opensaml.core.xml.XMLObject object)
Convert an XMLObject to an array of String which can represent the type, if recognized.
-
-
-
Field Detail
-
attributes
private final Collection<Attribute> attributes
Population to evaluate for a match.
-
-
Constructor Detail
-
EntityAttributesMatcher
public EntityAttributesMatcher(@Nonnull @NonnullElements Collection<Attribute> attrs)
Constructor.- Parameters:
attrs
- population to evaluate for a match
-
-
Method Detail
-
test
public boolean test(@Nonnull EntityAttributesPredicate.Candidate input)
- Specified by:
test
in interfacePredicate<EntityAttributesPredicate.Candidate>
-
getPossibleAttributeValuesAsStrings
@Nonnull List<String> getPossibleAttributeValuesAsStrings(@Nonnull Attribute attribute)
Get all possible strings values for the attribute. This copes with the fact that an attribute can return multiple valuesAttribute.getAttributeValues()
and that some type of value can have multiple values (for instance a boolean can be 1/0/true/false).- Parameters:
attribute
- what to inspect- Returns:
- all possible values, as string.
-
-