org.apache.hc.client5.http.ssl

## Class NoopHostnameVerifier

- java.lang.Object
- - org.apache.hc.client5.http.ssl.NoopHostnameVerifier

- All Implemented Interfaces:
    HostnameVerifier

      @Contract(threading=STATELESS)
      public class NoopHostnameVerifier
      extends Object
      implements HostnameVerifier

  The NO_OP HostnameVerifier essentially turns hostname verification off. This implementation is a no-op, and never throws the SSLException.
  Since:
    4.4

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static NoopHostnameVerifier` | `INSTANCE`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `NoopHostnameVerifier()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `toString()`
    `boolean` | `verify(String s, SSLSession sslSession)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### INSTANCE

          public static final NoopHostnameVerifier INSTANCE

  - ### Constructor Detail

    - #### NoopHostnameVerifier

          public NoopHostnameVerifier()

  - ### Method Detail

    - #### verify

          public boolean verify(String s,
                                SSLSession sslSession)

      Specified by:
        `verify` in interface `HostnameVerifier`

    - #### toString

          public final String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 1999–2022 The Apache Software Foundation. All rights reserved.