Class 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 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

      public RelyingPartyIdPredicate​(@Nonnull @ParameterName(name="pred") Predicate<String> pred)
      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

      @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