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 Details

    • defaultScope

      @Nullable private com.nimbusds.oauth2.sdk.Scope defaultScope
      Default 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 default Scope to return in the absence of client metadata.
      Parameters:
      scope - default scope
    • setDefaultScope

      public void setDefaultScope(@Nullable @NonnullElements String scope)
      Set the default Scope to return in the absence of client metadata.
      Parameters:
      scope - default scope in string form
    • apply

      @Nullable public com.nimbusds.oauth2.sdk.Scope apply(@Nullable OIDCMetadataContext input)
      Specified by:
      apply in interface Function<OIDCMetadataContext,com.nimbusds.oauth2.sdk.Scope>