Class TokenErrorResponse

java.lang.Object
io.micronaut.security.oauth2.endpoint.token.response.TokenErrorResponse

@Introspected public class TokenErrorResponse extends Object
Represent the response of an authorization server to an invalid access token request.
Since:
1.2.0
Author:
James Kleeh
See Also:
  • Constructor Details

    • TokenErrorResponse

      public TokenErrorResponse()
  • Method Details

    • getError

      @NonNull public @NonNull TokenError getError()
      Returns:
      The error code
    • setError

      public void setError(TokenError error)
      Parameters:
      error - The error code
    • getErrorDescription

      @Nullable public @Nullable String getErrorDescription()
      Returns:
      The error description
    • setErrorDescription

      public void setErrorDescription(String errorDescription)
      Parameters:
      errorDescription - The error description
    • getErrorUri

      @Nullable public @Nullable String getErrorUri()
      Returns:
      The error uri
    • setErrorUri

      public void setErrorUri(String errorUri)
      Parameters:
      errorUri - The error uri
    • toString

      public String toString()
      Overrides:
      toString in class Object