Class BackChannelDeviceSSOAuthorization

java.lang.Object
com.nimbusds.openid.connect.provider.spi.nativesso.BackChannelDeviceSSOAuthorization

@Immutable public class BackChannelDeviceSSOAuthorization extends Object
Back-channel device SSO authorisation.

Required authorisation details:

  • The authorised scope. Must include the openid and device_sso scope values.
  • An ID token issue must be authorised.

All other parameters are optional or have suitable defaults.

  • Constructor Details

    • BackChannelDeviceSSOAuthorization

      public BackChannelDeviceSSOAuthorization(com.nimbusds.oauth2.sdk.Scope scope, AccessTokenSpec accessTokenSpec, RefreshTokenSpec refreshTokenSpec, IDTokenSpec idTokenSpec, ClaimsSpec claimsSpec, @Nullable net.minidev.json.JSONObject data)
      Creates a new Back-channel device SSO authorisation for a subject (end-user).
      Parameters:
      scope - The authorised scope. Must not be null.
      accessTokenSpec - The access token specification. Must not be null.
      refreshTokenSpec - The refresh token specification. Must not be null.
      idTokenSpec - The ID token specification. Must not be null.
      claimsSpec - The OpenID claims specification. Must not be null.
      data - Additional data as a JSON object, null if not specified.
  • Method Details

    • getScope

      public com.nimbusds.oauth2.sdk.Scope getScope()
      Returns the authorised scope.
      Returns:
      The authorised scope.
    • getAccessTokenSpec

      Returns the access token specification.
      Returns:
      The access token specification.
    • getRefreshTokenSpec

      Returns the refresh token specification.
      Returns:
      The refresh token specification.
    • getIDTokenSpec

      Returns the ID token specification.
      Returns:
      The ID token specification.
    • getClaimsSpec

      Returns the OpenID claims specification.
      Returns:
      The OpenID claims specification.
    • getData

      public @Nullable net.minidev.json.JSONObject getData()
      Returns the additional data as a JSON object.
      Returns:
      The additional data, null if not specified.