Class NoopHostnameVerifier

  • All Implemented Interfaces:
    javax.net.ssl.HostnameVerifier

    @Contract(threading=IMMUTABLE)
    public class NoopHostnameVerifier
    extends java.lang.Object
    implements javax.net.ssl.HostnameVerifier
    The NO_OP HostnameVerifier essentially turns hostname verification off. This implementation is a no-op, and never throws the SSLException.
    Since:
    4.4
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      boolean verify​(java.lang.String s, javax.net.ssl.SSLSession sslSession)  
      • Methods inherited from class java.lang.Object

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

      • NoopHostnameVerifier

        public NoopHostnameVerifier()
    • Method Detail

      • verify

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

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