boolean function ( SSLSocket arg0 ) { if ( ! tls ) { return false ; } if ( tlsVersions != null && ! nonEmptyIntersection ( tlsVersions , arg0 . getEnabledProtocols ( ) ) ) { return false ; } if ( cipherSuites != null && ! nonEmptyIntersection ( cipherSuites , arg0 . getEnabledCipherSuites ( ) ) ) { return false ; } return true ; }
returns true if the socket , as currently configured , supports this connection spec . inorder for a socket to be compatible the enabled cipher suites and protocols must intersect . for cipher suites , at least one of the #ciphersuites required cipher suites mustmatch the socket 's enabled cipher suites . if there are no required cipher suites the socket must have at least one cipher suite enabled . for protocols , at least one of the #tlsversions required protocols must match thesocket 's enabled protocols . concode_field_sep ConnectionSpec COMPATIBLE_TLS concode_elem_sep boolean supportsTlsExtensions concode_elem_sep ConnectionSpec CLEARTEXT concode_elem_sep CipherSuite[] APPROVED_CIPHER_SUITES concode_elem_sep String[] tlsVersions concode_elem_sep String[] cipherSuites concode_elem_sep boolean tls concode_elem_sep ConnectionSpec MODERN_TLS concode_field_sep Builder allEnabledCipherSuites concode_elem_sep void apply concode_elem_sep ConnectionSpec supportedSpec concode_elem_sep boolean isTls concode_elem_sep boolean supportsTlsExtensions concode_elem_sep Builder supportsTlsExtensions concode_elem_sep Builder allEnabledTlsVersions concode_elem_sep List<TlsVersion> tlsVersions concode_elem_sep Builder tlsVersions concode_elem_sep Builder tlsVersions concode_elem_sep ConnectionSpec build concode_elem_sep List<CipherSuite> cipherSuites concode_elem_sep Builder cipherSuites concode_elem_sep Builder cipherSuites concode_elem_sep int hashCode concode_elem_sep boolean equals concode_elem_sep boolean nonEmptyIntersection concode_elem_sep String toString