Class EntityGroupNamePredicate
- java.lang.Object
-
- org.opensaml.saml.common.profile.logic.EntityGroupNamePredicate
-
- All Implemented Interfaces:
Predicate<EntityDescriptor>
,net.shibboleth.utilities.java.support.logic.Predicate<EntityDescriptor>
public class EntityGroupNamePredicate extends Object implements net.shibboleth.utilities.java.support.logic.Predicate<EntityDescriptor>
Predicate to determine whether one of a set of names matches any of an entity's containingEntitiesDescriptor
groups.
-
-
Field Summary
Fields Modifier and Type Field Description private Collection<net.shibboleth.utilities.java.support.resolver.CriteriaSet>
criteriaSets
Pre-created criteria sets for metadata lookup.private Set<String>
groupNames
Groups to match on.private org.slf4j.Logger
log
Class logger.private MetadataResolver
metadataResolver
A supplemental resolver to allow forAffiliationDescriptor
lookup.
-
Constructor Summary
Constructors Constructor Description EntityGroupNamePredicate(Collection<String> names)
Constructor.EntityGroupNamePredicate(Collection<String> names, MetadataResolver resolver)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
getGroupNames()
Get the group name criteria.boolean
test(EntityDescriptor input)
-
-
-
Field Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
metadataResolver
@Nullable private MetadataResolver metadataResolver
A supplemental resolver to allow forAffiliationDescriptor
lookup.
-
criteriaSets
@Nullable @NonnullElements private Collection<net.shibboleth.utilities.java.support.resolver.CriteriaSet> criteriaSets
Pre-created criteria sets for metadata lookup.
-
-
Constructor Detail
-
EntityGroupNamePredicate
public EntityGroupNamePredicate(@Nullable @ParameterName(name="names") Collection<String> names)
Constructor.- Parameters:
names
- the group names to test for
-
EntityGroupNamePredicate
public EntityGroupNamePredicate(@Nullable @ParameterName(name="names") Collection<String> names, @Nullable @ParameterName(name="resolver") MetadataResolver resolver)
Constructor.- Parameters:
names
- the group names to test forresolver
- metadata resolver for affiliation support- Since:
- 3.4.0
-
-
Method Detail
-
getGroupNames
@Nonnull @NonnullElements @Unmodifiable @NotLive public Set<String> getGroupNames()
Get the group name criteria.- Returns:
- the group name criteria
-
test
public boolean test(@Nullable EntityDescriptor input)
- Specified by:
test
in interfacePredicate<EntityDescriptor>
-
-