Code example for SSLServerSocketFactory

Methods: createServerSocket

0
     * @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) {
            Vector vec = null;
            String cipher = requestedCiphers;
            int index = requestedCiphers.indexOf(',');
            if (index != -1) {
                int fromIndex = 0;
                while (index != -1) {
                    cipher = requestedCiphers.substring(fromIndex, index).trim();
                    if (cipher.length() > 0) {
                        /* 
                         * Check to see if the requested cipher is among the