tls

object tls

Based on SSLContextFactory from jetty.

Based on SSLContextFactory from jetty.

class Object
trait Matchable
class Any

Value members

Concrete methods

def deduceKeyLength(cipherSuite: String): Int

Given the name of a TLS/SSL cipher suite, return an int representing it effective stream cipher key strength. i.e. How much entropy material is in the key material being fed into the encryption routines.

Given the name of a TLS/SSL cipher suite, return an int representing it effective stream cipher key strength. i.e. How much entropy material is in the key material being fed into the encryption routines.

This is based on the information on effective key lengths in RFC 2246 - The TLS Protocol Version 1.0, Appendix C. CipherSuite definitions:

                       Effective
   Cipher       Type    Key Bits

   NULL       * Stream     0
   IDEA_CBC     Block    128
   RC2_CBC_40 * Block     40
   RC4_40     * Stream    40
   RC4_128      Stream   128
   DES40_CBC  * Block     40
   DES_CBC      Block     56
   3DES_EDE_CBC Block    168
Value Params
cipherSuite

String name of the TLS cipher suite.

Returns

int indicating the effective key entropy bit-length.

def getCertChain(sslSession: SSLSession): List[X509Certificate]

Return X509 certificates for the session.

Return X509 certificates for the session.

Value Params
sslSession

Session from which certificate to be read

Returns

Empty array if no certificates can be read from

sslSession