Class InvalidSslCertificateException

  • All Implemented Interfaces:
    java.io.Serializable

    public class InvalidSslCertificateException
    extends TransportProtocolException
    Exception which is reported when HTTP response is received with status
     526 Invalid SSL Certificate
     

    This might happen when the client uses vanilla HTTP to communicate with an intermediary which forwards the request over TLS/SSL to the target server.

    The 526 response then signals that the intermediary failed to establish trust with the target server. The response might contain the PEM encoded certificate presented by the target server during the SSL handshake with the intermediary (the SSL client). This certificate can be used to establish subsequent successful connection if is considered trusted (Trust On First Use scenarios).

    An example of the described scenario is the Envoy Sidecar used on the vCSA.

    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int STATUS_CODE
      526 Invalid SSL Certificate
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getContent()
      The body content of the 526 HTTP error as a UTF-8 String.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • STATUS_CODE

        public static final int STATUS_CODE
        526 Invalid SSL Certificate
        See Also:
        Constant Field Values
    • Constructor Detail

      • InvalidSslCertificateException

        public InvalidSslCertificateException​(java.lang.String content)
    • Method Detail

      • getContent

        public java.lang.String getContent()
        The body content of the 526 HTTP error as a UTF-8 String. Can be null if there was no body or the body could not be read.

        This might be the PEM-encoded certificate presented by the target server.

        Returns:
        the HTTP response body content