private static String [ ] decideCipherSuites ( ) { String sysCipherSuites = System . getProperty ( "https.cipherSuites" ) ; String [ ] cipherSuites = sysCipherSuites != null ? sysCipherSuites . split ( "," ) : // use jdk default cipher suites ( ( SSLServerSocketFactory ) SSLServerSocketFactory . getDefault ( ) ) . getDefaultCipherSuites ( ) ; // cipher suites need to be picked up in code explicitly for jdk 1.7 // https://stackoverflow.com/questions/44378970/ if ( logger . isTraceEnabled ( ) ) { logger . trace ( "Cipher suites used: {}" , Arrays . toString ( cipherSuites ) ) ; } return cipherSuites ; }
Decide cipher suites that will be passed into the SSLConnectionSocketFactory