Code example for SSLSocket

Methods: setEnabledCipherSuitessetEnabledProtocols

    catch (ConnectException e) {
      throw new VerboseConnectException(e, "SSL end point " + remoteEndPoint);
    return socket;
   * <p>Factory method for client sockets that are layered over 
   * existing sockets. Used to establish HTTPS proxy connections.</p> 
   * <p>The SSL socket takes ownership of the existing socket; when 
   * the SSL socket is closed, the existing socket will also be 
   * closed.</p> 
   * @param existingSocket The existing socket. 
Connect your IDE to all the code out there  Get Codota for Java