public SSLSocket setCipherListOnSocket(java.util.Properties props, javax.net.ssl.SSLSocket socket) {
        if (tc.isEntryEnabled())
            Tr.entry(tc, "setCipherListOnSocket");

        if (props == null) {
            if (tc.isEntryEnabled())
                Tr.exit(tc, "setCipherListOnSocket props == null");
            return socket;
        }

        String ciphers[] = null;
        String cipherString = props.getProperty(Constants.SSLPROP_ENABLED_CIPHERS);

        if (socket != null) {

            try {

                if (cipherString != null) {

                    ciphers = cipherString.split("\\s");
                } else {
                    String securityLevel = props.getProperty(Constants.SSLPROP_SECURITY_LEVEL);
                    if (tc.isDebugEnabled())
                        Tr.debug(tc, "securityLevel from properties is " + securityLevel);
                    if (securityLevel == null)
                        securityLevel = "HIGH";

                    String[] supportedCiphers = socket.getEnabledCipherSuites();
                    ciphers = com.ibm.ws.ssl.config.SSLConfigManager.getInstance().adjustSupportedCiphersToSecurityLevel(supportedCiphers, securityLevel);

                }
                if (ciphers != null) {
                    socket.setEnabledCipherSuites(ciphers);
                }

            } catch (Exception e) {
                if (tc.isDebugEnabled())
                    Tr.debug(tc, "Exception setting ciphers in SSL Socket Factory.", new Object[] { e });
            }
        }
        if (tc.isEntryEnabled())
            Tr.exit(tc, "setCipherListOnSocket");
        return socket;
    }
public SSLSocket setCipherListOnSocket ( java . util . Properties props , javax . net . ssl . SSLSocket socket ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "setCipherListOnSocket" ) ; if ( props == null ) { if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "setCipherListOnSocket props == null" ) ; return socket ; } String ciphers [ ] = null ; String cipherString = props . getProperty ( Constants . SSLPROP_ENABLED_CIPHERS ) ; if ( socket != null ) { try { if ( cipherString != null ) { ciphers = cipherString . split ( "\\s" ) ; } else { String securityLevel = props . getProperty ( Constants . SSLPROP_SECURITY_LEVEL ) ; if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "securityLevel from properties is " + securityLevel ) ; if ( securityLevel == null ) securityLevel = "HIGH" ; String [ ] supportedCiphers = socket . getEnabledCipherSuites ( ) ; ciphers = com . ibm . ws . ssl . config . SSLConfigManager . getInstance ( ) . adjustSupportedCiphersToSecurityLevel ( supportedCiphers , securityLevel ) ; } if ( ciphers != null ) { socket . setEnabledCipherSuites ( ciphers ) ; } } catch ( Exception e ) { if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "Exception setting ciphers in SSL Socket Factory." , new Object [ ] { e } ) ; } } if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "setCipherListOnSocket" ) ; return socket ; }
@param sslProps
@param socket
@return