Class EntityGroupNamePredicate
java.lang.Object
org.opensaml.saml.common.profile.logic.EntityGroupNamePredicate
- All Implemented Interfaces:
Predicate<EntityDescriptor>
Predicate to determine whether one of a set of names matches any of an entity's containing
EntitiesDescriptor groups.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Collection<CriteriaSet>Pre-created criteria sets for metadata lookup.Groups to match on.private final org.slf4j.LoggerClass logger.private MetadataResolverA supplemental resolver to allow forAffiliationDescriptorlookup. -
Constructor Summary
ConstructorsConstructorDescriptionEntityGroupNamePredicate(Collection<String> names) Constructor.EntityGroupNamePredicate(Collection<String> names, MetadataResolver resolver) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet the group name criteria.booleantest(EntityDescriptor input)
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
groupNames
Groups to match on. -
metadataResolver
A supplemental resolver to allow forAffiliationDescriptorlookup. -
criteriaSets
Pre-created criteria sets for metadata lookup.
-
-
Constructor Details
-
EntityGroupNamePredicate
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 Details
-
getGroupNames
Get the group name criteria.- Returns:
- the group name criteria
-
test
- Specified by:
testin interfacePredicate<EntityDescriptor>
-