public abstract void setEnabledCipherSuites (String[] suites)

Sets the cipher suites enabled for use on this connection.

Each cipher suite in the suites parameter must have been listed by getSupportedCipherSuites(), or the method will fail. Following a successful call to this method, only suites listed in the suites parameter are enabled for use.

Note that the standard list of cipher suite names may be found in the JSSE Cipher Suite Names section of the Java Cryptography Architecture Standard Algorithm Name Documentation. Providers may support cipher suite names not found in this list or might not use the recommended name for a certain cipher suite.

See getEnabledCipherSuites() for more information on why a specific ciphersuite may never be used on a connection.

Parameters:
suites    Names of all the cipher suites to enable

Exceptions:
IllegalArgumentException    when one or more of the ciphers named by the parameter is not supported, or when the parameter is null.

See also:
getSupportedCipherSuites(), getEnabledCipherSuites()