Class ClientAuthenticationException

All Implemented Interfaces:
Serializable

public class ClientAuthenticationException extends ClientRuntimeException
Thrown for security authentication related exceptions.
Since:
3.0.0
See Also:
  • Constructor Details

    • ClientAuthenticationException

      public ClientAuthenticationException(String message, ClientResponse response)
      Creates an instance specifying the exception message and the client response that originated this exception.
      Parameters:
      message - the exception message.
      response - the client response.
      Since:
      4.0.0
    • ClientAuthenticationException

      public ClientAuthenticationException(String message)
      Creates an instance specifying the exception message.
      Parameters:
      message - the exception message.
  • Method Details

    • getResponseBody

      public Optional<String> getResponseBody()
      Gets the remote response body as String, if any.
      Returns:
      an empty Optional if response has no body; the contained String reference otherwise.
      Since:
      4.0.0
    • getResponseHeaders

      public MultivaluedMap<String,String> getResponseHeaders()
      Gets the response headers.
      Returns:
      the response headers.
      Since:
      4.0.0