Class SSLSocketUtils


  • public class SSLSocketUtils
    extends java.lang.Object
    General utilities for SSLSocket.
    Since:
    3.4
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean enableEndpointNameVerification​(javax.net.ssl.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​(javax.net.ssl.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+)