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

public final class OAuth2TokenValidatorResult

  1. Object
  2. OAuth2TokenValidatorResult
What an OAuth2TokenValidator found: nothing, or the errors.

Methods

public static OAuth2TokenValidatorResult success()The token passed.
public static OAuth2TokenValidatorResult failure(OAuth2Error... errors)The token failed, for these reasons.
public static OAuth2TokenValidatorResult failure(Collection<OAuth2Error> errors)The token failed, for these reasons; passed, when there are none.
public boolean hasErrors()
public List<OAuth2Error> getErrors()

Inherited methods

Method details

success

public static OAuth2TokenValidatorResult success()
The token passed.

failure

public static OAuth2TokenValidatorResult failure(OAuth2Error... errors)
The token failed, for these reasons.

failure

public static OAuth2TokenValidatorResult failure(Collection<OAuth2Error> errors)
The token failed, for these reasons; passed, when there are none.

hasErrors

public boolean hasErrors()

getErrors

public List<OAuth2Error> getErrors()