Class DefaultAllowedScopeLookupFunction
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.idp.plugin.oidc.op.profile.logic.DefaultAllowedScopeLookupFunction
- All Implemented Interfaces:
Function<ProfileRequestContext,,com.nimbusds.oauth2.sdk.Scope> Component,DestructableComponent,InitializableComponent
public class DefaultAllowedScopeLookupFunction
extends AbstractInitializableComponent
implements Function<ProfileRequestContext,com.nimbusds.oauth2.sdk.Scope>
Default function for looking up the allowed scope. The scope is obtained from
OIDCMetadataContext if found,
via unregistered client policy instead.- Since:
- 3.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Function<ProfileRequestContext,com.nimbusds.oauth2.sdk.Scope> Lookup strategy for fetching the allowed scope for unregistered clients. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.nimbusds.oauth2.sdk.Scopeapply(ProfileRequestContext input) voidsetUnregisteredClientAllowedScopeLookupStrategy(Function<ProfileRequestContext, com.nimbusds.oauth2.sdk.Scope> strategy) Set the lookup strategy for fetching the allowed scope for unregistered clients.Methods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, doInitialize, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitialized
-
Field Details
-
unregisteredClientAllowedScopeLookupStrategy
@Nonnull private Function<ProfileRequestContext,com.nimbusds.oauth2.sdk.Scope> unregisteredClientAllowedScopeLookupStrategyLookup strategy for fetching the allowed scope for unregistered clients.
-
-
Constructor Details
-
DefaultAllowedScopeLookupFunction
public DefaultAllowedScopeLookupFunction()Constructor.
-
-
Method Details
-
setUnregisteredClientAllowedScopeLookupStrategy
public void setUnregisteredClientAllowedScopeLookupStrategy(@Nonnull Function<ProfileRequestContext, com.nimbusds.oauth2.sdk.Scope> strategy) Set the lookup strategy for fetching the allowed scope for unregistered clients.- Parameters:
strategy- What to set.
-
apply
- Specified by:
applyin interfaceFunction<ProfileRequestContext,com.nimbusds.oauth2.sdk.Scope>
-