Package net.shibboleth.idp.profile.logic
Class RelyingPartyIdPredicate
java.lang.Object
net.shibboleth.utilities.java.support.logic.StrategyIndirectedPredicate<ProfileRequestContext,String>
net.shibboleth.idp.profile.logic.RelyingPartyIdPredicate
- All Implemented Interfaces:
Predicate<ProfileRequestContext>
,Predicate<ProfileRequestContext>
public class RelyingPartyIdPredicate
extends StrategyIndirectedPredicate<ProfileRequestContext,String>
Predicate that evaluates a
ProfileRequestContext
by looking for a relying party ID
that matches one of a designated set, or a generic predicate. The ID is obtained from a
RelyingPartyContext
child of the profile request context.-
Constructor Summary
ConstructorsConstructorDescriptionRelyingPartyIdPredicate
(String candidate) Constructor.RelyingPartyIdPredicate
(Collection<String> candidates) Constructor.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic RelyingPartyIdPredicate
fromCandidate
(String candidate) Workaround for Spring type conversion ambiguities.static RelyingPartyIdPredicate
fromCandidates
(Collection<String> candidates) Workaround for Spring type conversion ambiguities.static RelyingPartyIdPredicate
fromPredicate
(Predicate<String> pred) Workaround for Spring type conversion ambiguities.Methods inherited from class net.shibboleth.utilities.java.support.logic.StrategyIndirectedPredicate
forCollection, forPredicate, test
-
Constructor Details
-
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
-
RelyingPartyIdPredicate
Constructor.- Parameters:
pred
- generalized predicate
-
-
Method Details
-
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
Workaround for Spring type conversion ambiguities.- Parameters:
candidate
- a single value to check against- Returns:
- the predicate
- Since:
- 3.4.0
-
fromPredicate
Workaround for Spring type conversion ambiguities.- Parameters:
pred
- generalized predicate- Returns:
- the predicate
- Since:
- 3.4.0
-