Package org.opensaml.profile.logic
Class ProfileIdPredicate
- java.lang.Object
-
- org.opensaml.profile.logic.ProfileIdPredicate
-
- All Implemented Interfaces:
Predicate<ProfileRequestContext>,net.shibboleth.utilities.java.support.logic.Predicate<ProfileRequestContext>
public class ProfileIdPredicate extends Object implements net.shibboleth.utilities.java.support.logic.Predicate<ProfileRequestContext>
A predicate implementation that tests whether a profile request's profile ID matches an expected value.
-
-
Constructor Summary
Constructors Constructor Description ProfileIdPredicate(String id)Constructor.
-
-
-
Field Detail
-
profileId
@Nonnull @NotEmpty private final String profileId
Profile ID to test for.
-
-
Constructor Detail
-
ProfileIdPredicate
public ProfileIdPredicate(@Nonnull @NotEmpty @ParameterName(name="id") String id)Constructor.- Parameters:
id- profile ID to test for
-
-
Method Detail
-
test
public boolean test(@Nullable ProfileRequestContext input)- Specified by:
testin interfacePredicate<ProfileRequestContext>
-
-