Class RegistrationPolicyPredicate
- java.lang.Object
-
- org.opensaml.saml.common.profile.logic.AbstractRegistrationInfoPredicate
-
- org.opensaml.saml.common.profile.logic.RegistrationPolicyPredicate
-
- All Implemented Interfaces:
Predicate<EntityDescriptor>
,net.shibboleth.utilities.java.support.logic.Predicate<EntityDescriptor>
public class RegistrationPolicyPredicate extends AbstractRegistrationInfoPredicate
Predicate to determine whether one of a set of names matches an entity'sRegistrationPolicy
.
-
-
Constructor Summary
Constructors Constructor Description RegistrationPolicyPredicate(Collection<String> policies)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
doApply(RegistrationInfo info)
Override this method to implement the predicate.Set<String>
getPolicies()
Get the policy criteria.-
Methods inherited from class org.opensaml.saml.common.profile.logic.AbstractRegistrationInfoPredicate
getMatchIfMetadataSilent, getRegistrationInfo, setMatchIfMetadataSilent, test
-
-
-
-
Constructor Detail
-
RegistrationPolicyPredicate
public RegistrationPolicyPredicate(@Nullable @ParameterName(name="policies") Collection<String> policies)
Constructor.- Parameters:
policies
- the policies to test for
-
-
Method Detail
-
getPolicies
@Nonnull @NonnullElements @Unmodifiable @NotLive public Set<String> getPolicies()
Get the policy criteria.- Returns:
- the policy criteria
-
doApply
protected boolean doApply(@Nonnull RegistrationInfo info)
Override this method to implement the predicate.- Specified by:
doApply
in classAbstractRegistrationInfoPredicate
- Parameters:
info
- the information to evaluate- Returns:
- the result of the predicate
-
-