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

        public RelyingPartyIdPredicate​(@Nonnull @ParameterName(name="pred")
                                       Predicate<String> pred)
        Constructor.
        Parameters:
        pred - generalized predicate
    • 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