Class TLSProtocol.SessionBytes

java.lang.Object
org.apache.pekko.stream.TLSProtocol.SessionBytes
All Implemented Interfaces:
Serializable, ScalaSessionAPI, TLSProtocol.SslTlsInbound, scala.Equals, scala.Product
Enclosing class:
TLSProtocol

public static final class TLSProtocol.SessionBytes extends Object implements TLSProtocol.SslTlsInbound, ScalaSessionAPI, scala.Product, Serializable
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.

See Also:
  • Constructor Details

  • Method Details

    • session

      public SSLSession session()
      Description copied from interface: ScalaSessionAPI
      The underlying SSLSession.
      Specified by:
      session in interface ScalaSessionAPI
    • bytes

      public ByteString bytes()
    • copy

      public TLSProtocol.SessionBytes copy(SSLSession session, ByteString bytes)
    • copy$default$1

      public SSLSession copy$default$1()
    • copy$default$2

      public ByteString copy$default$2()
    • productPrefix

      public String productPrefix()
      Specified by:
      productPrefix in interface scala.Product
    • productArity

      public int productArity()
      Specified by:
      productArity in interface scala.Product
    • productElement

      public Object productElement(int x$1)
      Specified by:
      productElement in interface scala.Product
    • productIterator

      public scala.collection.Iterator<Object> productIterator()
      Specified by:
      productIterator in interface scala.Product
    • canEqual

      public boolean canEqual(Object x$1)
      Specified by:
      canEqual in interface scala.Equals
    • productElementName

      public String productElementName(int x$1)
      Specified by:
      productElementName in interface scala.Product
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object x$1)
      Specified by:
      equals in interface scala.Equals
      Overrides:
      equals in class Object