Package org.conscrypt
Class SessionSnapshot
java.lang.Object
org.conscrypt.SessionSnapshot
- All Implemented Interfaces:
SSLSession,ConscryptSession
A snapshot of the content of another
ConscryptSession. This copies everything over
except for the certificates.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
sessionContext
-
id
private final byte[] id -
requestedServerName
-
statusResponses
-
peerTlsSctData
private final byte[] peerTlsSctData -
creationTime
private final long creationTime -
lastAccessedTime
private final long lastAccessedTime -
cipherSuite
-
protocol
-
peerHost
-
applicationProtocol
-
peerPort
private final int peerPort
-
-
Constructor Details
-
SessionSnapshot
SessionSnapshot(ConscryptSession session)
-
-
Method Details
-
getRequestedServerName
- Specified by:
getRequestedServerNamein interfaceConscryptSession
-
getStatusResponses
Description copied from interface:ConscryptSessionReturns the OCSP stapled response. Returns a copy of the internal arrays. The method signature matches Java 9.- Specified by:
getStatusResponsesin interfaceConscryptSession- See Also:
-
getPeerSignedCertificateTimestamp
public byte[] getPeerSignedCertificateTimestamp()Description copied from interface:ConscryptSessionReturns the signed certificate timestamp (SCT) received from the peer. Returns a copy of the internal array.- Specified by:
getPeerSignedCertificateTimestampin interfaceConscryptSession- See Also:
-
getId
public byte[] getId()- Specified by:
getIdin interfaceSSLSession
-
getSessionContext
- Specified by:
getSessionContextin interfaceSSLSession
-
getCreationTime
public long getCreationTime()- Specified by:
getCreationTimein interfaceSSLSession
-
getLastAccessedTime
public long getLastAccessedTime()- Specified by:
getLastAccessedTimein interfaceSSLSession
-
invalidate
public void invalidate()- Specified by:
invalidatein interfaceSSLSession
-
isValid
public boolean isValid()- Specified by:
isValidin interfaceSSLSession
-
putValue
- Specified by:
putValuein interfaceSSLSession
-
getValue
- Specified by:
getValuein interfaceSSLSession
-
removeValue
- Specified by:
removeValuein interfaceSSLSession
-
getValueNames
- Specified by:
getValueNamesin interfaceSSLSession
-
getPeerCertificates
- Specified by:
getPeerCertificatesin interfaceConscryptSession- Specified by:
getPeerCertificatesin interfaceSSLSession- Throws:
SSLPeerUnverifiedException
-
getLocalCertificates
- Specified by:
getLocalCertificatesin interfaceSSLSession
-
getPeerCertificateChain
- Specified by:
getPeerCertificateChainin interfaceSSLSession- Throws:
SSLPeerUnverifiedException
-
getPeerPrincipal
- Specified by:
getPeerPrincipalin interfaceSSLSession- Throws:
SSLPeerUnverifiedException
-
getLocalPrincipal
- Specified by:
getLocalPrincipalin interfaceSSLSession
-
getCipherSuite
- Specified by:
getCipherSuitein interfaceSSLSession
-
getProtocol
- Specified by:
getProtocolin interfaceSSLSession
-
getPeerHost
- Specified by:
getPeerHostin interfaceSSLSession
-
getPeerPort
public int getPeerPort()- Specified by:
getPeerPortin interfaceSSLSession
-
getPacketBufferSize
public int getPacketBufferSize()- Specified by:
getPacketBufferSizein interfaceSSLSession
-
getApplicationBufferSize
public int getApplicationBufferSize()- Specified by:
getApplicationBufferSizein interfaceSSLSession
-
getApplicationProtocol
- Specified by:
getApplicationProtocolin interfaceConscryptSession
-