Class ValidatedScopePredicate
java.lang.Object
net.shibboleth.shared.logic.StrategyIndirectedPredicate<ProfileRequestContext,Scope>
net.shibboleth.idp.plugin.oidc.op.messaging.context.logic.ValidatedScopePredicate
- All Implemented Interfaces:
Predicate<ProfileRequestContext>
public class ValidatedScopePredicate
extends StrategyIndirectedPredicate<ProfileRequestContext,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 Summary
ConstructorsConstructorDescriptionValidatedScopePredicate(String value) Constructor.ValidatedScopePredicate(Collection<String> values) Constructor.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic ValidatedScopePredicatefromPredicate(Predicate<Scope> pred) Workaround for Spring type conversion ambiguities.static ValidatedScopePredicateWorkaround for Spring type conversion ambiguities.static ValidatedScopePredicatefromValues(Collection<String> values) Workaround for Spring type conversion ambiguities.Methods inherited from class net.shibboleth.shared.logic.StrategyIndirectedPredicate
forCollection, forPredicate, test
-
Constructor Details
-
ValidatedScopePredicate
public ValidatedScopePredicate(@Nonnull @NonnullElements @ParameterName(name="values") Collection<String> values) Constructor.- Parameters:
values- hardwired set of values to check against
-
ValidatedScopePredicate
Constructor.- Parameters:
value- a single value to check against
-
ValidatedScopePredicate
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
Workaround for Spring type conversion ambiguities.- Parameters:
value- a single value to check against- Returns:
- the predicate
-
fromPredicate
Workaround for Spring type conversion ambiguities.- Parameters:
pred- generalized predicate- Returns:
- the predicate
-