Interface CredentialsProvider.StatusCode

All Known Implementing Classes:
GrpcStatusCode, HttpStatusCode
Enclosing interface:
CredentialsProvider

public static interface CredentialsProvider.StatusCode
Represents the result of a failed call, abstracting over gRPC and standard HTTP status codes.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the raw status code, e.g.
    boolean
    Returns true if the request was failed because the user cannot be authenticated.
  • Method Details

    • code

      int code()
      Returns the raw status code, e.g. HTTP 401 Unauthorized, or gRPC 16 Unauthenticated.
    • isUnauthorized

      boolean isUnauthorized()
      Returns true if the request was failed because the user cannot be authenticated.