Code example for SSLServerSocketFactory

Methods: createServerSocket

0
SSLSocket asock = null;
        try { 
             asock = (SSLSocket)socket.accept();
             configureClientAuth(asock);
        } catch (SSLException e){
          throw new SocketException("SSL handshake error" + e.toString());
        } 
        return asock;
    } 
 
    public void handshake(Socket sock) throws IOException {
        ((SSLSocket)sock).startHandshake();
    } 
 
    /* 
     * Determines the SSL cipher suites to be enabled. 
     * 
     * @param requestedCiphers Comma-separated list of requested ciphers 
     * @param supportedCiphers Array of supported ciphers 
     *