Class DefaultUnregisteredClientAllowedScopeLookupFunction
java.lang.Object
net.shibboleth.idp.plugin.oidc.op.profile.logic.DefaultUnregisteredClientAllowedScopeLookupFunction
- All Implemented Interfaces:
Function<ProfileRequestContext,Scope>
public class DefaultUnregisteredClientAllowedScopeLookupFunction
extends Object
implements Function<ProfileRequestContext,Scope>
Default lookup function for fetching the allowed scope from the unregistered client policy. The allowed scope
value must be set there via 'value' operator.
- Since:
- 3.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BiFunction<Object,MetadataPolicy, Pair<Object, Boolean>> Enforcer function for fetching allowed scope via the configured policy.Strategy used to locate the unregistered client policy. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(ProfileRequestContext input) voidsetUnregisteredClientPolicyEnforcer(BiFunction<Object, MetadataPolicy, Pair<Object, Boolean>> enforcer) Set the enforcer function for fetching the allowed scope via the configured policy.voidsetUnregisteredClientPolicyLookupStrategy(Function<ProfileRequestContext, Map<String, UnregisteredClientPolicy>> strategy) Set the strategy used to locate the unregistered client policy.
-
Field Details
-
unregisteredClientPolicyLookupStrategy
@Nonnull private Function<ProfileRequestContext,Map<String, unregisteredClientPolicyLookupStrategyUnregisteredClientPolicy>> Strategy used to locate the unregistered client policy. -
unregisteredClientPolicyEnforcer
@Nonnull private BiFunction<Object,MetadataPolicy, unregisteredClientPolicyEnforcerPair<Object, Boolean>> Enforcer function for fetching allowed scope via the configured policy.
-
-
Constructor Details
-
DefaultUnregisteredClientAllowedScopeLookupFunction
public DefaultUnregisteredClientAllowedScopeLookupFunction()Constructor.
-
-
Method Details
-
setUnregisteredClientPolicyLookupStrategy
public void setUnregisteredClientPolicyLookupStrategy(Function<ProfileRequestContext, Map<String, UnregisteredClientPolicy>> strategy) Set the strategy used to locate the unregistered client policy.- Parameters:
strategy- lookup strategy
-
setUnregisteredClientPolicyEnforcer
public void setUnregisteredClientPolicyEnforcer(BiFunction<Object, MetadataPolicy, Pair<Object, Boolean>> enforcer) Set the enforcer function for fetching the allowed scope via the configured policy.- Parameters:
enforcer- policy enforcer
-
apply
- Specified by:
applyin interfaceFunction<ProfileRequestContext,Scope>
-