public class EntityAttributesPredicate extends Object implements Predicate<EntityDescriptor>
EntityDescriptor
or its parent groups contain an
extension Attribute
that matches the predicate's criteria.Modifier and Type | Class and Description |
---|---|
static class |
EntityAttributesPredicate.Candidate
An object to encapsulate the set of criteria that must be satisfied by an
EntityAttributes
extension to satisfy the enclosing predicate. |
private class |
EntityAttributesPredicate.EntityAttributesMatcher
Determines whether an
EntityAttributesPredicate.Candidate criterion is satisfied by the Attribute s
in an EntityAttributes extension. |
Modifier and Type | Field and Description |
---|---|
private Collection<EntityAttributesPredicate.Candidate> |
candidateSet
Candidates to check for.
|
private Logger |
log
Class logger.
|
private boolean |
matchAll
Whether all the candidates must match.
|
private boolean |
trimTags
Whether to trim the values in the metadata before comparison.
|
Constructor and Description |
---|
EntityAttributesPredicate(Collection<EntityAttributesPredicate.Candidate> candidates)
Constructor.
|
EntityAttributesPredicate(Collection<EntityAttributesPredicate.Candidate> candidates,
boolean trim)
Constructor.
|
EntityAttributesPredicate(Collection<EntityAttributesPredicate.Candidate> candidates,
boolean trim,
boolean all)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
apply(EntityDescriptor input) |
Collection<EntityAttributesPredicate.Candidate> |
getCandidates()
Get the candidate criteria.
|
boolean |
getTrimTags()
Get whether to trim tags for comparison.
|
private final boolean trimTags
private final boolean matchAll
@Nonnull @NonnullElements private final Collection<EntityAttributesPredicate.Candidate> candidateSet
public EntityAttributesPredicate(@Nonnull@NonnullElements Collection<EntityAttributesPredicate.Candidate> candidates)
candidates
- the EntityAttributesPredicate.Candidate
criteria to check forpublic EntityAttributesPredicate(@Nonnull@NonnullElements Collection<EntityAttributesPredicate.Candidate> candidates, boolean trim)
candidates
- the EntityAttributesPredicate.Candidate
criteria to check fortrim
- true iff the values found in the metadata should be trimmed before comparisonpublic EntityAttributesPredicate(@Nonnull@NonnullElements Collection<EntityAttributesPredicate.Candidate> candidates, boolean trim, boolean all)
candidates
- the EntityAttributesPredicate.Candidate
criteria to check fortrim
- true iff the values found in the metadata should be trimmed before comparisonall
- true iff all the criteria must match to be a successful testpublic boolean getTrimTags()
@Nonnull @NonnullElements @Unmodifiable @NotLive public Collection<EntityAttributesPredicate.Candidate> getCandidates()
public boolean apply(@Nullable EntityDescriptor input)
apply
in interface Predicate<EntityDescriptor>
Copyright © 1999–2016 Shibboleth Consortium. All rights reserved.