Code example for SSLServerSocketFactory

Methods: createServerSocket

0
    } 
 
    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 
     * 
     * @return Array of SSL cipher suites to be enabled, or null if none of the 
     * requested ciphers are supported 
     */ 
    protected String[] getEnabledCiphers(String requestedCiphers,
                                         String[] supportedCiphers) {
 
        String[] enabledCiphers = null;
 
        if (requestedCiphers != null) {