public SSLContextBuilder withCipherFilter ( SSLCipherFilter cipherFilter ) { if ( cipherFilter == null ) { this . nettyCipherSuiteFilter = null ; } else { this . nettyCipherSuiteFilter = ( ciphers , defaultCiphers , supportedCiphers ) -> { List < String > selected = cipherFilter . selectCiphers ( supportedCiphers , defaultCiphers ) ; if ( selected == null ) { selected = defaultCiphers ; } return selected . toArray ( new String [ 0 ] ) ; } ; } return this ; }
Sets a filter allowing you to specify which ciphers you would like to support .