Package net.shibboleth.idp.profile.logic
Class RelyingPartyIdPredicate
- java.lang.Object
-
- net.shibboleth.utilities.java.support.logic.StrategyIndirectedPredicate<org.opensaml.profile.context.ProfileRequestContext,String>
-
- net.shibboleth.idp.profile.logic.RelyingPartyIdPredicate
-
- All Implemented Interfaces:
Predicate<org.opensaml.profile.context.ProfileRequestContext>,net.shibboleth.utilities.java.support.logic.Predicate<org.opensaml.profile.context.ProfileRequestContext>
public class RelyingPartyIdPredicate extends net.shibboleth.utilities.java.support.logic.StrategyIndirectedPredicate<org.opensaml.profile.context.ProfileRequestContext,String>
Predicate that evaluates aProfileRequestContextby looking for a relying party ID that matches one of a designated set, or a generic predicate. The ID is obtained from aRelyingPartyContextchild of the profile request context.
-
-
Constructor Summary
Constructors Constructor Description RelyingPartyIdPredicate(String candidate)Constructor.RelyingPartyIdPredicate(Collection<String> candidates)Constructor.RelyingPartyIdPredicate(Predicate<String> pred)Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RelyingPartyIdPredicatefromCandidate(String candidate)Workaround for Spring type conversion ambiguities.static RelyingPartyIdPredicatefromCandidates(Collection<String> candidates)Workaround for Spring type conversion ambiguities.static RelyingPartyIdPredicatefromPredicate(Predicate<String> pred)Workaround for Spring type conversion ambiguities.-
Methods inherited from class net.shibboleth.utilities.java.support.logic.StrategyIndirectedPredicate
forCollection, forPredicate, test
-
-
-
-
Constructor Detail
-
RelyingPartyIdPredicate
public RelyingPartyIdPredicate(@Nonnull @NonnullElements @ParameterName(name="candidates") Collection<String> candidates)Constructor.- Parameters:
candidates- hardwired set of values to check against
-
RelyingPartyIdPredicate
public RelyingPartyIdPredicate(@Nonnull @NotEmpty @ParameterName(name="candidate") String candidate)Constructor.- Parameters:
candidate- a single value to check against
-
-
Method Detail
-
fromCandidates
@Nonnull public static RelyingPartyIdPredicate fromCandidates(@Nonnull @NonnullElements Collection<String> candidates)
Workaround for Spring type conversion ambiguities.- Parameters:
candidates- hardwired set of values to check against- Returns:
- the predicate
- Since:
- 3.4.0
-
fromCandidate
@Nonnull public static RelyingPartyIdPredicate fromCandidate(@Nonnull @NotEmpty String candidate)
Workaround for Spring type conversion ambiguities.- Parameters:
candidate- a single value to check against- Returns:
- the predicate
- Since:
- 3.4.0
-
fromPredicate
@Nonnull public static RelyingPartyIdPredicate fromPredicate(@Nonnull Predicate<String> pred)
Workaround for Spring type conversion ambiguities.- Parameters:
pred- generalized predicate- Returns:
- the predicate
- Since:
- 3.4.0
-
-