SessionBytes

org.apache.pekko.stream.TLSProtocol.SessionBytes
final case class SessionBytes(session: SSLSession, bytes: ByteString) extends SslTlsInbound, ScalaSessionAPI

Plaintext bytes emitted by the SSLEngine are received over one specific encryption session and this class bundles the bytes with the SSLSession object. When the session changes due to renegotiation (which can be initiated by either party) the new session value will not compare equal to the previous one.

The Java API for getting session information is given by the SSLSession object, the Scala API adapters are offered below.

Attributes

Source
SslTlsOptions.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def localCertificates: List[Certificate]

Scala API: Extract the certificates that were actually used by this engine during this session’s negotiation. The list is empty if no certificates were used.

Scala API: Extract the certificates that were actually used by this engine during this session’s negotiation. The list is empty if no certificates were used.

Attributes

Inherited from:
ScalaSessionAPI
Source
TLS.scala
def localPrincipal: Option[Principal]

Scala API: Extract the Principal that was actually used by this engine during this session’s negotiation.

Scala API: Extract the Principal that was actually used by this engine during this session’s negotiation.

Attributes

Inherited from:
ScalaSessionAPI
Source
TLS.scala
def peerCertificates: List[Certificate]

Scala API: Extract the certificates that were used by the peer engine during this session’s negotiation. The list is empty if no certificates were used.

Scala API: Extract the certificates that were used by the peer engine during this session’s negotiation. The list is empty if no certificates were used.

Attributes

Inherited from:
ScalaSessionAPI
Source
TLS.scala
def peerPrincipal: Option[Principal]

Scala API: Extract the Principal that the peer engine presented during this session’s negotiation.

Scala API: Extract the Principal that the peer engine presented during this session’s negotiation.

Attributes

Inherited from:
ScalaSessionAPI
Source
TLS.scala

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product