SslContext

cc.otavia.handler.ssl.SslContext
See theSslContext companion class
object SslContext

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
SslContext.type

Members list

Value members

Concrete methods

def buildKeyManagerFactory(certChainFile: Array[X509Certificate], keyAlgorithm: Option[String], key: PrivateKey, keyPassword: Option[String], keyStore: String): KeyManagerFactory
def buildTrustManagerFactory(certCollection: Array[X509Certificate], keyStoreType: String): TrustManagerFactory

Returns the default client-side implementation provider currently in use.

Returns the default client-side implementation provider currently in use.

Attributes

Returns

only SslProvider.JDK supported.

Returns the default server-side implementation provider currently in use.

Returns the default server-side implementation provider currently in use.

Attributes

Returns

only SslProvider.JDK supported.

def getPrivateKeyFromByteBuffer(encodedKey: Array[Byte], keyPassword: Option[String]): PrivateKey
def newClientContextInternal(provider: SslProvider, sslContextProvider: Option[Provider], trustManagerFactory: Option[TrustManagerFactory], keyManagerFactory: Option[KeyManagerFactory], ciphers: Option[Seq[String]], cipherFilter: CipherSuiteFilter, apn: Option[ApplicationProtocolConfig], protocols: Array[String], sessionCacheSize: Long, sessionTimeout: Long, enableOcsp: Boolean, keyStoreType: String): SslContext
def newServerContextInternal(provider: SslProvider, sslContextProvider: Option[Provider], trustManagerFactory: Option[TrustManagerFactory], keyManagerFactory: Option[KeyManagerFactory], ciphers: Option[Seq[String]], cipherFilter: CipherSuiteFilter, apn: Option[ApplicationProtocolConfig], sessionCacheSize: Long, sessionTimeout: Long, clientAuth: ClientAuth, protocols: Array[String], startTls: Boolean, enableOcsp: Boolean, keyStoreType: String): SslContext
def toPrivateKey(keyFile: File, keyPassword: Option[String]): PrivateKey
def toPrivateKey(keyInputStream: InputStream, keyPassword: Option[String]): PrivateKey
def toX509Certificates(file: File): Array[X509Certificate]
def toX509Certificates(in: InputStream): Array[X509Certificate]

Concrete fields

val X509_CERT_FACTORY: CertificateFactory