Package org.apache.pekko.stream
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbytes()
boolean
copy
(SSLSession session, ByteString bytes) boolean
int
hashCode()
int
productElement
(int x$1) productElementName
(int x$1) scala.collection.Iterator<Object>
session()
The underlyingSSLSession
.toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface scala.Product
productElementNames
Methods inherited from interface org.apache.pekko.stream.scaladsl.ScalaSessionAPI
localCertificates, localPrincipal, peerCertificates, peerPrincipal
-
Constructor Details
-
SessionBytes
-
-
Method Details
-
session
Description copied from interface:ScalaSessionAPI
The underlyingSSLSession
.- Specified by:
session
in interfaceScalaSessionAPI
-
bytes
-
copy
-
copy$default$1
-
copy$default$2
-
productPrefix
- Specified by:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArity
in interfacescala.Product
-
productElement
- Specified by:
productElement
in interfacescala.Product
-
productIterator
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode() -
toString
-
equals
-