cc.otavia.handler.ssl

Members list

Type members

Classlikes

Provides an SSLEngine agnostic way to configure a ApplicationProtocolNegotiator.

Provides an SSLEngine agnostic way to configure a ApplicationProtocolNegotiator.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type

Provides a set of protocol names used in ALPN and NPN.

Provides a set of protocol names used in ALPN and NPN.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Provides a means to filter the supplied cipher suite based upon the supported and default cipher suites.

Provides a means to filter the supplied cipher suite based upon the supported and default cipher suites.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
enum ClientAuth

Indicates the state of the SSLEngine with respect to client authentication. This configuration item really only applies when building the server-side SslContext.

Indicates the state of the SSLEngine with respect to client authentication. This configuration item really only applies when building the server-side SslContext.

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

This class will not do any filtering of ciphers suites.

This class will not do any filtering of ciphers suites.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion
object
Supertypes
class JdkSslEngine
class SSLEngine
class Object
trait Matchable
class Any

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
class JdkSslClientContext(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, keyStoreType: String) extends JdkSslContext

Attributes

Companion
object
Supertypes
class SslContext
class Object
trait Matchable
class Any

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
abstract class JdkSslContext(val context: SSLContext, val isClient: Boolean, ciphers: Option[Seq[String]], cipherFilter: CipherSuiteFilter, val apn: JdkApplicationProtocolNegotiator, val clientAuth: ClientAuth, val pts: Array[String], startTls: Boolean) extends SslContext

Attributes

Companion
object
Supertypes
class SslContext
class Object
trait Matchable
class Any
Known subtypes
object JdkSslContext

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
class JdkSslEngine(val engine: SSLEngine) extends SSLEngine

Attributes

Supertypes
class SSLEngine
class Object
trait Matchable
class Any
Known subtypes
class JdkSslServerContext(provider: Option[Provider], trustManagerFactory: Option[TrustManagerFactory], keyManagerFactory: KeyManagerFactory, ciphers: Option[Seq[String]], cipherFilter: CipherSuiteFilter, apn: Option[ApplicationProtocolConfig], sessionCacheSize: Long, sessionTimeout: Long, clientAuth: ClientAuth, protocols: Array[String], startTls: Boolean, keyStore: String) extends JdkSslContext

Attributes

Companion
object
Supertypes
class SslContext
class Object
trait Matchable
class Any

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
object PemReader

Reads a PEM file and converts it into a list of DERs so that they are imported into a KeyStore easily.

Reads a PEM file and converts it into a list of DERs so that they are imported into a KeyStore easily.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
PemReader.type
class SslCloseCompletion(cause: Option[Throwable]) extends SslCompletionEvent

Event that is fired once the close_notify was received or if an failure happens before it was received.

Event that is fired once the close_notify was received or if an failure happens before it was received.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
abstract class SslCompletionEvent(val cause: Option[Throwable])

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
abstract class SslContext

A secure socket protocol implementation which acts as a factory for SSLEngine and SslHandler. Internally, it is implemented via JDK's SSLContext. === Making your server support SSL/TLS ===

A secure socket protocol implementation which acts as a factory for SSLEngine and SslHandler. Internally, it is implemented via JDK's SSLContext. === Making your server support SSL/TLS ===

    val pipeline = channel.pipeline()
    val sslCtx = SslContextBuilder.forServer(...).build()
    pipeline.addLast("tls", sslCtx.newHandler())

=== Making your client support SSL/TLS ===

    val pipeline = channel.pipeline()
    val sslCtx = SslContextBuilder.forClient().build()
    pipeline.addLast("tls", sslCtx.newHandler(host, port))

Value parameters

startTls

true if the first write request shouldn't be encrypted by the SSLEngine

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object SslContext

Attributes

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

Builder for configuring a new SslContext for creation.

Builder for configuring a new SslContext for creation.

Value parameters

forServer

is server-side SslContext

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
class SslHandler(engine: SSLEngine, startTls: Boolean) extends ByteToByteCodec

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Show all
object SslHandler

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
SslHandler.type
class SslHandshakeCompletion(cause: Option[Throwable]) extends SslCompletionEvent

Event that is fired once the SSL handshake is complete, which may be because it was successful or there was an error.

Event that is fired once the SSL handshake is complete, which may be because it was successful or there was an error.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
object SslProtocols

SSL/TLS protocols

SSL/TLS protocols

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

An enumeration of SSL/TLS protocol providers.

An enumeration of SSL/TLS protocol providers.

Attributes

Companion
object
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object SslProvider

Attributes

Companion
enum
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
object SslUtils

Constants for SSL packets.

Constants for SSL packets.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
SslUtils.type

This class will filter all requested ciphers out that are not supported by the current SSLEngine.

This class will filter all requested ciphers out that are not supported by the current SSLEngine.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type