abstract class SslSessionInfo extends AnyRef
SslSessionInfo
provides information related to an existing connection's use
of an SSL/TLS session. SSL/TLS sessions are either negotiated or resumed
during handshaking. When using SSL/TLS, one and only one SSL/TLS session is
associated with a connection, although it's possible that an SSL/TLS session
may be reused between multiple connections.
An instance of this class should be associated with an existing connection.
When using SSL/TLS, the instance provides easy access to the session and its
relevant information. When not using SSL/TLS (i.e. there is no existing
SSL/TLS session), then a NullSslSessionInfo
should be used instead.
- Alphabetic
- By Inheritance
- SslSessionInfo
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new SslSessionInfo()
Abstract Value Members
- abstract def cipherSuite: String
The cipher suite associated with an
SSLSession
.The cipher suite associated with an
SSLSession
.- Note
If SSL/TLS is not being used, an empty string will be returned instead.
- abstract def getLocalIdentity: Option[ServiceIdentity]
- Attributes
- protected
- abstract def getPeerIdentity: Option[ServiceIdentity]
- Attributes
- protected
- abstract def localCertificates: Seq[X509Certificate]
The
X509Certificate
s that were sent to the peer during the SSL/TLS handshake.The
X509Certificate
s that were sent to the peer during the SSL/TLS handshake.- Note
If SSL/TLS is not being used, an empty sequence will be returned instead.
- abstract def peerCertificates: Seq[X509Certificate]
The
X509Certificate
s that were received from the peer during the SSL/TLS handshake.The
X509Certificate
s that were received from the peer during the SSL/TLS handshake.- Note
If SSL/TLS is not being used, an empty sequence will be returned instead.
- abstract def session: SSLSession
The
SSLSession
associated with a particular connection.The
SSLSession
associated with a particular connection.- Note
If SSL/TLS is not being used a
NullSslSession
will be returned instead.
- abstract def sessionId: String
The Session ID associated with an
SSLSession
.The Session ID associated with an
SSLSession
.- Note
The maximum length for an SSL/TLS Session ID is 32 bytes. This method returns a hex string version of the Session ID which has a maximum length of 64 bytes.
,If SSL/TLS is not being used, an empty string will be returned instead.
- abstract def usingSsl: Boolean
Indicates whether the connection is using SSL/TLS.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- lazy val localIdentity: Option[ServiceIdentity]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- lazy val peerIdentity: Option[ServiceIdentity]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()