Java Code Examples for javax.net.ssl.SSLSocketFactory.getSupportedCipherSuites()

The following are Jave code examples for showing how to use getSupportedCipherSuites() of the javax.net.ssl.SSLSocketFactory class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: incubator-servicecomb-java-chassis   File: SSLManager.java   Source Code and License Vote up 5 votes
public static SSLSocketFactory createSSLSocketFactory(SSLOption option, SSLCustom custom) {
  SSLContext context = createSSLContext(option, custom);
  SSLSocketFactory factory = context.getSocketFactory();
  String[] supported = factory.getSupportedCipherSuites();
  String[] eanbled = option.getCiphers().split(",");
  return new SSLSocketFactoryExt(factory, getEnabledCiphers(supported, eanbled),
      option.getProtocols().split(","));
}