Package org.conscrypt
Class SSLNullSession
java.lang.Object
org.conscrypt.SSLNullSession
- All Implemented Interfaces:
Cloneable
,SSLSession
,ConscryptSession
This is returned in the place of a
SSLSession
when no TLS connection could be negotiated,
but one was requested from a method that can't throw an exception such as SSLSocket.getSession()
before SSLSocket.startHandshake()
is
called.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
long
byte[]
getId()
long
(package private) static ConscryptSession
int
int
byte[]
Returns the signed certificate timestamp (SCT) received from the peer.List
<byte[]> Returns the OCSP stapled response.String[]
void
boolean
isValid()
void
void
removeValue
(String name)
-
Field Details
-
INVALID_CIPHER
- See Also:
-
creationTime
private long creationTime -
lastAccessedTime
private long lastAccessedTime
-
-
Constructor Details
-
SSLNullSession
private SSLNullSession()
-
-
Method Details
-
getNullSession
-
getRequestedServerName
- Specified by:
getRequestedServerName
in interfaceConscryptSession
-
getStatusResponses
Description copied from interface:ConscryptSession
Returns the OCSP stapled response. Returns a copy of the internal arrays. The method signature matches Java 9.- Specified by:
getStatusResponses
in interfaceConscryptSession
- See Also:
-
getPeerSignedCertificateTimestamp
public byte[] getPeerSignedCertificateTimestamp()Description copied from interface:ConscryptSession
Returns the signed certificate timestamp (SCT) received from the peer. Returns a copy of the internal array.- Specified by:
getPeerSignedCertificateTimestamp
in interfaceConscryptSession
- See Also:
-
getApplicationBufferSize
public int getApplicationBufferSize()- Specified by:
getApplicationBufferSize
in interfaceSSLSession
-
getApplicationProtocol
- Specified by:
getApplicationProtocol
in interfaceConscryptSession
-
getCipherSuite
- Specified by:
getCipherSuite
in interfaceSSLSession
-
getCreationTime
public long getCreationTime()- Specified by:
getCreationTime
in interfaceSSLSession
-
getId
public byte[] getId()- Specified by:
getId
in interfaceSSLSession
-
getLastAccessedTime
public long getLastAccessedTime()- Specified by:
getLastAccessedTime
in interfaceSSLSession
-
getLocalCertificates
- Specified by:
getLocalCertificates
in interfaceSSLSession
-
getLocalPrincipal
- Specified by:
getLocalPrincipal
in interfaceSSLSession
-
getPacketBufferSize
public int getPacketBufferSize()- Specified by:
getPacketBufferSize
in interfaceSSLSession
-
getPeerCertificateChain
- Specified by:
getPeerCertificateChain
in interfaceSSLSession
- Throws:
SSLPeerUnverifiedException
-
getPeerCertificates
- Specified by:
getPeerCertificates
in interfaceConscryptSession
- Specified by:
getPeerCertificates
in interfaceSSLSession
- Throws:
SSLPeerUnverifiedException
-
getPeerHost
- Specified by:
getPeerHost
in interfaceSSLSession
-
getPeerPort
public int getPeerPort()- Specified by:
getPeerPort
in interfaceSSLSession
-
getPeerPrincipal
- Specified by:
getPeerPrincipal
in interfaceSSLSession
- Throws:
SSLPeerUnverifiedException
-
getProtocol
- Specified by:
getProtocol
in interfaceSSLSession
-
getSessionContext
- Specified by:
getSessionContext
in interfaceSSLSession
-
getValue
- Specified by:
getValue
in interfaceSSLSession
-
getValueNames
- Specified by:
getValueNames
in interfaceSSLSession
-
invalidate
public void invalidate()- Specified by:
invalidate
in interfaceSSLSession
-
isValid
public boolean isValid()- Specified by:
isValid
in interfaceSSLSession
-
putValue
- Specified by:
putValue
in interfaceSSLSession
-
removeValue
- Specified by:
removeValue
in interfaceSSLSession
-