ActiveSession

A session that is dedicated a single connection and operates directly on the underlying {@code SSL}.

Constructors

this
this(NativeSsl ssl, AbstractSessionContext sessionContext)
Undocumented in source.

Members

Functions

getApplicationBufferSize
int getApplicationBufferSize()
Undocumented in source. Be warned that the author may not have intended to support it.
getCipherSuite
string getCipherSuite()

Returns the certificate(s) of the peer in this SSL session used in the handshaking phase of the connection. Please notice hat this method is superseded by <code>getPeerCertificates()</code>. @return an array of X509 certificates (the peer's one first and then eventually that of the certification authority) or null if no certificate were used during the SSL connection. @throws SSLPeerUnverifiedException if either a non-X.509 certificate was used (i.e. Kerberos certificates) or the peer could not be verified.

getCreationTime
long getCreationTime()
Undocumented in source. Be warned that the author may not have intended to support it.
getId
byte[] getId()
Undocumented in source. Be warned that the author may not have intended to support it.
getLastAccessedTime
long getLastAccessedTime()

Returns the last time this SSL session was accessed. Accessing here is to mean that a new connection with the same SSL context data was established.

getPacketBufferSize
int getPacketBufferSize()
Undocumented in source. Be warned that the author may not have intended to support it.
getPeerHost
string getPeerHost()
Undocumented in source. Be warned that the author may not have intended to support it.
getPeerPort
int getPeerPort()
Undocumented in source. Be warned that the author may not have intended to support it.
getPeerSignedCertificateTimestamp
byte[] getPeerSignedCertificateTimestamp()

Returns the signed certificate timestamp (SCT) received from the peer. Returns a copy of the internal array.

getProtocol
string getProtocol()
Undocumented in source. Be warned that the author may not have intended to support it.
getRequestedServerName
string getRequestedServerName()
Undocumented in source. Be warned that the author may not have intended to support it.
getSessionContext
SSLSessionContext getSessionContext()
Undocumented in source. Be warned that the author may not have intended to support it.
getStatusResponses
List!(byte[]) getStatusResponses()

Returns the OCSP stapled response. Returns a copy of the internal arrays.

getValue
Object getValue(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
getValueNames
string[] getValueNames()
Undocumented in source. Be warned that the author may not have intended to support it.
invalidate
void invalidate()
Undocumented in source. Be warned that the author may not have intended to support it.
isValid
bool isValid()
Undocumented in source. Be warned that the author may not have intended to support it.
onPeerCertificateAvailable
void onPeerCertificateAvailable(string peerHost, int peerPort)

Updates the cached peer certificate after the handshake has completed (or entered False Start).

putValue
void putValue(string name, Object value)
Undocumented in source. Be warned that the author may not have intended to support it.
removeValue
void removeValue(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
resetId
void resetId()

Indicates that this session's ID may have changed and should be re-cached.

setLastAccessedTime
void setLastAccessedTime(long accessTimeMillis)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From ConscryptSession

getRequestedServerName
string getRequestedServerName()
Undocumented in source.
getStatusResponses
List!(byte[]) getStatusResponses()

Returns the OCSP stapled response. Returns a copy of the internal arrays.

getPeerSignedCertificateTimestamp
byte[] getPeerSignedCertificateTimestamp()

Returns the signed certificate timestamp (SCT) received from the peer. Returns a copy of the internal array.

Meta