public class OpenSSLSessionImpl extends AbstractOpenSSLSession
| Modifier and Type | Field and Description |
|---|---|
protected long |
sslSessionNativePointer |
| Modifier | Constructor and Description |
|---|---|
protected |
OpenSSLSessionImpl(long sslSessionNativePointer,
X509Certificate[] localCertificates,
X509Certificate[] peerCertificates,
byte[] peerCertificateOcspData,
byte[] peerTlsSctData,
String peerHost,
int peerPort,
org.conscrypt.AbstractSessionContext sessionContext)
Class constructor creates an SSL session context given the appropriate
SSL parameters.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize() |
String |
getCipherSuite()
Returns a string identifier of the crypto tools used in the actual SSL
session.
|
long |
getCreationTime()
Gets the creation time of the SSL session.
|
byte[] |
getEncoded()
Get the session object in DER format.
|
byte[] |
getId()
Gets the identifier of the actual SSL session
|
long |
getLastAccessedTime()
Returns the last time this concrete SSL session was accessed.
|
String |
getPeerHost()
The peer's host name used in this SSL session is returned.
|
int |
getPeerPort()
Returns the peer's port number for the actual SSL session.
|
String |
getProtocol()
Returns the standard version name of the SSL protocol used in all
connections pertaining to this SSL session.
|
String |
getRequestedServerName()
Returns the name requested by the SNI extension.
|
List<byte[]> |
getStatusResponses()
Returns the OCSP stapled response.
|
byte[] |
getTlsSctData()
Returns the TLS Stapled Certificate Transparency data.
|
Object |
getValue(String name)
Returns the object which is bound to the the input parameter name.
|
String[] |
getValueNames()
Returns an array with the names (sort of links) of all the data
objects of the application layer bound into the SSL session.
|
protected X509Certificate[] |
getX509LocalCertificates() |
protected X509Certificate[] |
getX509PeerCertificates() |
void |
putValue(String name,
Object value)
A link (name) with the specified value object of the SSL session's
application layer data is created or replaced.
|
void |
removeValue(String name)
Removes a link (name) with the specified value object of the SSL
session's application layer data.
|
void |
setLastAccessedTime(long accessTimeMillis)
Sets the last accessed time for this session in milliseconds since Jan 1,
1970 00:00:00 UTC.
|
getApplicationBufferSize, getLocalCertificates, getLocalPrincipal, getPacketBufferSize, getPeerCertificateChain, getPeerCertificates, getPeerPrincipal, getSessionContext, invalidate, isValidprotected OpenSSLSessionImpl(long sslSessionNativePointer,
X509Certificate[] localCertificates,
X509Certificate[] peerCertificates,
byte[] peerCertificateOcspData,
byte[] peerTlsSctData,
String peerHost,
int peerPort,
org.conscrypt.AbstractSessionContext sessionContext)
public byte[] getId()
public byte[] getEncoded()
public long getCreationTime()
public long getLastAccessedTime()
public void setLastAccessedTime(long accessTimeMillis)
AbstractOpenSSLSessionsetLastAccessedTime in class AbstractOpenSSLSessionprotected X509Certificate[] getX509LocalCertificates()
getX509LocalCertificates in class AbstractOpenSSLSessionprotected X509Certificate[] getX509PeerCertificates() throws SSLPeerUnverifiedException
getX509PeerCertificates in class AbstractOpenSSLSessionSSLPeerUnverifiedExceptionpublic String getPeerHost()
null if no information is
available.public int getPeerPort()
-1 if no one is available.public String getCipherSuite()
public String getProtocol()
public Object getValue(String name)
getValue in interface SSLSessiongetValue in class AbstractOpenSSLSessionname - the name of the binding to find.IllegalArgumentException - if the argument is null.public String[] getValueNames()
getValueNames in interface SSLSessiongetValueNames in class AbstractOpenSSLSessionpublic void putValue(String name, Object value)
SSLSessionBindingListener
interface, that object will be notified in due course.putValue in interface SSLSessionputValue in class AbstractOpenSSLSessionname - the name of the link (no null are
accepted!)value - data object that shall be bound to
name.IllegalArgumentException - if one or both argument(s) is null.public void removeValue(String name)
If the value object implements the SSLSessionBindingListener
interface, the object will receive a valueUnbound notification.
removeValue in interface SSLSessionremoveValue in class AbstractOpenSSLSessionname - the name of the link (no null are
accepted!)IllegalArgumentException - if the argument is null.public String getRequestedServerName()
getRequestedServerName in class AbstractOpenSSLSessionpublic List<byte[]> getStatusResponses()
getStatusResponses in class AbstractOpenSSLSessionpublic byte[] getTlsSctData()
AbstractOpenSSLSessiongetTlsSctData in class AbstractOpenSSLSession