public class RelyingPartyIdPredicate extends StrategyIndirectedPredicate<ProfileRequestContext,String>
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 and Description |
|---|
RelyingPartyIdPredicate(Collection<String> candidates)
Constructor.
|
RelyingPartyIdPredicate(com.google.common.base.Predicate<String> pred)
Constructor.
|
RelyingPartyIdPredicate(String candidate)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static 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(com.google.common.base.Predicate<String> pred)
Workaround for Spring type conversion ambiguities.
|
apply, forCollection, forPredicatepublic RelyingPartyIdPredicate(@Nonnull@NonnullElements@ParameterName(name="candidates") Collection<String> candidates)
candidates - hardwired set of values to check againstpublic RelyingPartyIdPredicate(@Nonnull@NotEmpty@ParameterName(name="candidate") String candidate)
candidate - a single value to check againstpublic RelyingPartyIdPredicate(@Nonnull@ParameterName(name="pred") com.google.common.base.Predicate<String> pred)
pred - generalized predicate@Nonnull public static RelyingPartyIdPredicate fromCandidates(@Nonnull@NonnullElements Collection<String> candidates)
candidates - hardwired set of values to check against@Nonnull public static RelyingPartyIdPredicate fromCandidate(@Nonnull@NotEmpty String candidate)
candidate - a single value to check against@Nonnull public static RelyingPartyIdPredicate fromPredicate(@Nonnull com.google.common.base.Predicate<String> pred)
pred - generalized predicateCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.