Class ValidatedScopePredicate
- java.lang.Object
-
- net.shibboleth.utilities.java.support.logic.StrategyIndirectedPredicate<ProfileRequestContext,com.nimbusds.oauth2.sdk.Scope>
-
- net.shibboleth.idp.plugin.oidc.op.messaging.context.logic.ValidatedScopePredicate
-
- All Implemented Interfaces:
Predicate<ProfileRequestContext>,Predicate<ProfileRequestContext>
public class ValidatedScopePredicate extends StrategyIndirectedPredicate<ProfileRequestContext,com.nimbusds.oauth2.sdk.Scope>
Predicate that evaluates aProfileRequestContextby looking for the validatedScopethat matches one of a designated set of string values, a single value, or a generic predicate.- Since:
- 3.3.0
-
-
Constructor Summary
Constructors Constructor Description ValidatedScopePredicate(String value)Constructor.ValidatedScopePredicate(Collection<String> values)Constructor.ValidatedScopePredicate(Predicate<com.nimbusds.oauth2.sdk.Scope> pred)Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ValidatedScopePredicatefromPredicate(Predicate<com.nimbusds.oauth2.sdk.Scope> pred)Workaround for Spring type conversion ambiguities.static ValidatedScopePredicatefromValue(String value)Workaround for Spring type conversion ambiguities.static ValidatedScopePredicatefromValues(Collection<String> values)Workaround for Spring type conversion ambiguities.-
Methods inherited from class net.shibboleth.utilities.java.support.logic.StrategyIndirectedPredicate
forCollection, forPredicate, test
-
-
-
-
Constructor Detail
-
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 Detail
-
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
-
-