SslContextBuilder

cc.otavia.handler.ssl.SslContextBuilder
See theSslContextBuilder companion class

Attributes

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

Members list

Value members

Concrete methods

Creates a builder for new client-side SslContext.

Creates a builder for new client-side SslContext.

Attributes

def forServer(keyCertChainFile: File, keyFile: File): SslContextBuilder

Creates a builder for new server-side SslContext.

Creates a builder for new server-side SslContext.

Value parameters

keyCertChainFile

an X.509 certificate chain file in PEM format

keyFile

a PKCS#8 private key file in PEM format

Attributes

def forServer(keyCertChainInputStream: InputStream, keyInputStream: InputStream): SslContextBuilder

Creates a builder for new server-side SslContext.

Creates a builder for new server-side SslContext.

Value parameters

keyCertChainInputStream

an input stream for an X.509 certificate chain in PEM format. The caller is responsible for calling InputStream.close() after build() has been called.

keyInputStream

an input stream for a PKCS#8 private key in PEM format. The caller is responsible for calling InputStream.close() after build() has been called.

Attributes

def forServer(key: PrivateKey, keyCertChain: X509Certificate*): SslContextBuilder

Creates a builder for new server-side SslContext.

Creates a builder for new server-side SslContext.

Value parameters

key

a PKCS#8 private key

keyCertChain

the X.509 certificate chain

Attributes

def forServer(keyCertChainFile: File, keyFile: File, keyPassword: String): SslContextBuilder

Creates a builder for new server-side SslContext.

Creates a builder for new server-side SslContext.

Value parameters

keyCertChainFile

an X.509 certificate chain file in PEM format

keyFile

a PKCS#8 private key file in PEM format

keyPassword

the password of the keyFile.

Attributes

def forServer(keyCertChainInputStream: InputStream, keyInputStream: InputStream, keyPassword: String): SslContextBuilder

Creates a builder for new server-side SslContext.

Creates a builder for new server-side SslContext.

Value parameters

keyCertChainInputStream

an input stream for an X.509 certificate chain in PEM format. The caller is responsible for calling InputStream.close() after build() has been called.

keyInputStream

an input stream for a PKCS#8 private key in PEM format. The caller is responsible for calling InputStream.close() after build() has been called.

keyPassword

the password of the keyFile.

Attributes

def forServer(key: PrivateKey, keyPassword: String, keyCertChain: X509Certificate*): SslContextBuilder

Creates a builder for new server-side SslContext.

Creates a builder for new server-side SslContext.

Value parameters

key

a PKCS#8 private key

keyCertChain

the X.509 certificate chain

keyPassword

the password of the keyFile.

Attributes

def forServer(keyManagerFactory: KeyManagerFactory): SslContextBuilder

Creates a builder for new server-side SslContext.

Creates a builder for new server-side SslContext.

Value parameters

keyManagerFactory

non-null factory for server's private key

Attributes