Class ValidatedScopePredicate

    • Constructor Detail

      • 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 Detail

      • 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