org.apache.commons.net.util

## Class SSLSocketUtils

- java.lang.Object
- - org.apache.commons.net.util.SSLSocketUtils

-     public class SSLSocketUtils
      extends Object

  General utilities for SSLSocket.
  Since:
    3.4

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static boolean` | `enableEndpointNameVerification(SSLSocket socket)` Enable the HTTPS endpoint identification algorithm on an SSLSocket.

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

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

- - ### Method Detail

    - #### enableEndpointNameVerification

          public static boolean enableEndpointNameVerification(SSLSocket socket)

      Enable the HTTPS endpoint identification algorithm on an SSLSocket.
      Parameters:
        `socket` - the SSL socket
      Returns:
        `true` on success (this is only supported on Java 1.7+)

Copyright © 2001–2020 The Apache Software Foundation. All rights reserved.