Class RegistrationAuthorityPredicate
- java.lang.Object
-
- org.opensaml.saml.common.profile.logic.AbstractRegistrationInfoPredicate
-
- org.opensaml.saml.common.profile.logic.RegistrationAuthorityPredicate
-
- All Implemented Interfaces:
Predicate<EntityDescriptor>,Predicate<EntityDescriptor>
public class RegistrationAuthorityPredicate extends AbstractRegistrationInfoPredicate
Predicate to determine whether one of a set of names matches an entity'sRegistrationInfo.getRegistrationAuthority().
-
-
Field Summary
Fields Modifier and Type Field Description private Set<String>authoritiesAuthorities to match on.
-
Constructor Summary
Constructors Constructor Description RegistrationAuthorityPredicate(Collection<String> names)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleandoApply(RegistrationInfo info)Override this method to implement the predicate.Set<String>getAuthorities()Get the authority name criteria.-
Methods inherited from class org.opensaml.saml.common.profile.logic.AbstractRegistrationInfoPredicate
getMatchIfMetadataSilent, getRegistrationInfo, setMatchIfMetadataSilent, test
-
-
-
-
Field Detail
-
authorities
@Nonnull @NonnullElements private final Set<String> authorities
Authorities to match on.
-
-
Constructor Detail
-
RegistrationAuthorityPredicate
public RegistrationAuthorityPredicate(@Nullable @ParameterName(name="names") Collection<String> names)
Constructor.- Parameters:
names- the authority names to test for
-
-
Method Detail
-
getAuthorities
@Nonnull @NonnullElements @Unmodifiable @NotLive public Set<String> getAuthorities()
Get the authority name criteria.- Returns:
- the authority name criteria
-
doApply
protected boolean doApply(@Nonnull RegistrationInfo info)Override this method to implement the predicate.- Specified by:
doApplyin classAbstractRegistrationInfoPredicate- Parameters:
info- the information to evaluate- Returns:
- the result of the predicate
-
-