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()booleancopy(SSLSession session, ByteString bytes) booleaninthashCode()intproductElement(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, waitMethods inherited from interface scala.Product
productElementNamesMethods inherited from interface org.apache.pekko.stream.scaladsl.ScalaSessionAPI
localCertificates, localPrincipal, peerCertificates, peerPrincipal
-
Constructor Details
-
SessionBytes
-
-
Method Details
-
session
Description copied from interface:ScalaSessionAPIThe underlyingSSLSession.- Specified by:
sessionin interfaceScalaSessionAPI
-
bytes
-
copy
-
copy$default$1
-
copy$default$2
-
productPrefix
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-
productIterator
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode() -
toString
-
equals
-