Class HostnameUnverifiedException

    • Constructor Summary

      Constructors 
      Constructor Description
      HostnameUnverifiedException​(javax.net.ssl.SSLSocket socket, String hostname)
      Constructor with the SSL socket and the expected hostname.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getHostname()
      Get the expected hostname.
      javax.net.ssl.SSLSocket getSSLSocket()
      Get the SSL socket against which the hostname verification failed.
      • 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
    • Constructor Detail

      • HostnameUnverifiedException

        🡇     🗕  🗗  🗖
        public HostnameUnverifiedException​(javax.net.ssl.SSLSocket socket,
                                           java.lang.String hostname)
        Constructor with the SSL socket and the expected hostname.
        Parameters:
        socket - The SSL socket against which the hostname verification failed.
        hostname - The expected hostname.
    • Method Detail

      • getSSLSocket

        🡅  🡇     🗕  🗗  🗖
        public javax.net.ssl.SSLSocket getSSLSocket()
        Get the SSL socket against which the hostname verification failed.
        Returns:
        The SSL socket.
        Code:
        Exact Method Body:
         return mSSLSocket;
        
      • getHostname

        🡅     🗕  🗗  🗖
        public java.lang.String getHostname()
        Get the expected hostname.
        Returns:
        The expected hostname.
        Code:
        Exact Method Body:
         return mHostname;