Class ClientInfoScopeLookupFunction
java.lang.Object
net.shibboleth.idp.plugin.oidc.op.profile.context.navigate.ClientInfoScopeLookupFunction
- All Implemented Interfaces:
Function<OIDCMetadataContext,,com.nimbusds.oauth2.sdk.Scope> ContextDataLookupFunction<OIDCMetadataContext,com.nimbusds.oauth2.sdk.Scope>
public class ClientInfoScopeLookupFunction
extends Object
implements ContextDataLookupFunction<OIDCMetadataContext,com.nimbusds.oauth2.sdk.Scope>
A function that returns
OIDCMetadataContext.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.nimbusds.oauth2.sdk.ScopeDefault to use if no metadata exists. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.nimbusds.oauth2.sdk.Scopeapply(OIDCMetadataContext input) voidsetDefaultScope(com.nimbusds.oauth2.sdk.Scope scope) Set the defaultScopeto return in the absence of client metadata.voidsetDefaultScope(String scope) Set the defaultScopeto return in the absence of client metadata.
-
Field Details
-
defaultScope
@Nullable private com.nimbusds.oauth2.sdk.Scope defaultScopeDefault to use if no metadata exists.
-
-
Constructor Details
-
ClientInfoScopeLookupFunction
public ClientInfoScopeLookupFunction()
-
-
Method Details
-
setDefaultScope
public void setDefaultScope(@Nullable com.nimbusds.oauth2.sdk.Scope scope) Set the defaultScopeto return in the absence of client metadata.- Parameters:
scope- default scope
-
setDefaultScope
Set the defaultScopeto return in the absence of client metadata.- Parameters:
scope- default scope in string form
-
apply
- Specified by:
applyin interfaceFunction<OIDCMetadataContext,com.nimbusds.oauth2.sdk.Scope>
-