Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

public class OAuth2AuthenticationException

  1. Object
  2. Throwable
  3. Exception
  4. RuntimeException
  5. AuthenticationException
  6. OAuth2AuthenticationException

Known subtypesInvalidBearerTokenException

An authentication that failed for a reason OAuth 2.0 has a code for.

Constructors

public OAuth2AuthenticationException(OAuth2Error error)
public OAuth2AuthenticationException(OAuth2Error error, String message)
public OAuth2AuthenticationException(OAuth2Error error, String message, Throwable cause)

Methods

public OAuth2Error getError()The error, with its code.

Inherited methods

Constructor details

OAuth2AuthenticationException

public OAuth2AuthenticationException(OAuth2Error error)

OAuth2AuthenticationException

public OAuth2AuthenticationException(OAuth2Error error, String message)

OAuth2AuthenticationException

public OAuth2AuthenticationException(OAuth2Error error, String message, Throwable cause)

Method details

getError

public OAuth2Error getError()
The error, with its code.