Class ValidatedScopePredicate

java.lang.Object
net.shibboleth.shared.logic.StrategyIndirectedPredicate<ProfileRequestContext,com.nimbusds.oauth2.sdk.Scope>
net.shibboleth.idp.plugin.oidc.op.messaging.context.logic.ValidatedScopePredicate
All Implemented Interfaces:
Predicate<ProfileRequestContext>

public class ValidatedScopePredicate extends StrategyIndirectedPredicate<ProfileRequestContext,com.nimbusds.oauth2.sdk.Scope>
Predicate that evaluates a ProfileRequestContext by looking for the validated Scope that matches one of a designated set of string values, a single value, or a generic predicate.
Since:
3.3.0
  • Constructor Details

    • ValidatedScopePredicate

      public ValidatedScopePredicate(@Nonnull @NonnullElements @ParameterName(name="values") Collection<String> values)
      Constructor.
      Parameters:
      values - hardwired set of values to check against
    • ValidatedScopePredicate

      public ValidatedScopePredicate(@Nonnull @NotEmpty @ParameterName(name="value") String value)
      Constructor.
      Parameters:
      value - a single value to check against
    • ValidatedScopePredicate

      public ValidatedScopePredicate(@Nonnull @ParameterName(name="pred") Predicate<com.nimbusds.oauth2.sdk.Scope> pred)
      Constructor.
      Parameters:
      pred - generalized predicate
  • Method Details

    • fromValues

      @Nonnull public static ValidatedScopePredicate fromValues(@Nonnull @NonnullElements Collection<String> values)
      Workaround for Spring type conversion ambiguities.
      Parameters:
      values - hardwired set of values to check against
      Returns:
      the predicate
    • fromValue

      @Nonnull public static ValidatedScopePredicate fromValue(@Nonnull @NotEmpty String value)
      Workaround for Spring type conversion ambiguities.
      Parameters:
      value - a single value to check against
      Returns:
      the predicate
    • fromPredicate

      @Nonnull public static ValidatedScopePredicate fromPredicate(@Nonnull Predicate<com.nimbusds.oauth2.sdk.Scope> pred)
      Workaround for Spring type conversion ambiguities.
      Parameters:
      pred - generalized predicate
      Returns:
      the predicate