Class OAuth2AuthenticationException

Direct Known Subclasses:
InvalidBearerTokenException

public class OAuth2AuthenticationException extends AuthenticationException
An authentication that failed for a reason OAuth 2.0 has a code for.
  • 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.