Code example for SSLServerSocketFactory

Methods: createServerSocket

SSLSocket asock = null;
        try { 
             asock = (SSLSocket)socket.accept();
        } catch (SSLException e){
          throw new SocketException("SSL handshake error" + e.toString());
        return asock;
    public void handshake(Socket sock) throws IOException {
     * Determines the SSL cipher suites to be enabled. 
     * @param requestedCiphers Comma-separated list of requested ciphers 
     * @param supportedCiphers Array of supported ciphers 
Connect your IDE to all the code out there  Get Codota for Java