Class Client.SBHostVerifier

  • All Implemented Interfaces:
    javax.net.ssl.HostnameVerifier, org.apache.http.conn.ssl.X509HostnameVerifier
    Enclosing class:
    Client

    public static class Client.SBHostVerifier
    extends java.lang.Object
    implements org.apache.http.conn.ssl.X509HostnameVerifier
    • Constructor Summary

      Constructors 
      Constructor Description
      SBHostVerifier()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      void verify​(java.lang.String host, java.lang.String[] cns, java.lang.String[] subjectAlts)  
      void verify​(java.lang.String host, java.security.cert.X509Certificate cert)  
      boolean verify​(java.lang.String hostname, javax.net.ssl.SSLSession session)  
      void verify​(java.lang.String host, javax.net.ssl.SSLSocket ssl)  
      • Methods inherited from class java.lang.Object

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

      • SBHostVerifier

        public SBHostVerifier()
    • Method Detail

      • verify

        public boolean verify​(java.lang.String hostname,
                              javax.net.ssl.SSLSession session)
        Specified by:
        verify in interface javax.net.ssl.HostnameVerifier
      • verify

        public void verify​(java.lang.String host,
                           java.lang.String[] cns,
                           java.lang.String[] subjectAlts)
                    throws javax.net.ssl.SSLException
        Specified by:
        verify in interface org.apache.http.conn.ssl.X509HostnameVerifier
        Throws:
        javax.net.ssl.SSLException
      • verify

        public void verify​(java.lang.String host,
                           java.security.cert.X509Certificate cert)
                    throws javax.net.ssl.SSLException
        Specified by:
        verify in interface org.apache.http.conn.ssl.X509HostnameVerifier
        Throws:
        javax.net.ssl.SSLException
      • verify

        public void verify​(java.lang.String host,
                           javax.net.ssl.SSLSocket ssl)
                    throws java.io.IOException
        Specified by:
        verify in interface org.apache.http.conn.ssl.X509HostnameVerifier
        Throws:
        java.io.IOException
      • toString

        public final java.lang.String toString()
        Overrides:
        toString in class java.lang.Object