Package org.conscrypt
Class Java7ExtendedSSLSession
java.lang.Object
javax.net.ssl.ExtendedSSLSession
org.conscrypt.Java7ExtendedSSLSession
- All Implemented Interfaces:
SSLSession
,ConscryptSession
- Direct Known Subclasses:
Java8ExtendedSSLSession
This is an adapter that wraps the active session with
ExtendedSSLSession
, if running
on Java 7+.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ExternalSession
private static final String[]
private static final String[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal int
final String
final long
final byte[]
getId()
final long
final Certificate[]
final Principal
final String[]
final int
final X509Certificate[]
final String
final int
final Principal
final byte[]
Returns the signed certificate timestamp (SCT) received from the peer.final String[]
final String
final String
final SSLSessionContext
final List
<byte[]> Provides forward-compatibility with Java 9.final Object
final String[]
final void
final boolean
isValid()
final void
final void
Methods inherited from class javax.net.ssl.ExtendedSSLSession
getRequestedServerNames
-
Field Details
-
LOCAL_SUPPORTED_SIGNATURE_ALGORITHMS
-
PEER_SUPPORTED_SIGNATURE_ALGORITHMS
-
delegate
-
-
Constructor Details
-
Java7ExtendedSSLSession
Java7ExtendedSSLSession(ExternalSession delegate)
-
-
Method Details
-
getLocalSupportedSignatureAlgorithms
- Specified by:
getLocalSupportedSignatureAlgorithms
in classExtendedSSLSession
-
getPeerSupportedSignatureAlgorithms
- Specified by:
getPeerSupportedSignatureAlgorithms
in classExtendedSSLSession
-
getRequestedServerName
- Specified by:
getRequestedServerName
in interfaceConscryptSession
-
getStatusResponses
Provides forward-compatibility with Java 9.- Specified by:
getStatusResponses
in interfaceConscryptSession
- Overrides:
getStatusResponses
in classExtendedSSLSession
- See Also:
-
getPeerSignedCertificateTimestamp
public final 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:
-
getId
public final byte[] getId()- Specified by:
getId
in interfaceSSLSession
-
getSessionContext
- Specified by:
getSessionContext
in interfaceSSLSession
-
getCreationTime
public final long getCreationTime()- Specified by:
getCreationTime
in interfaceSSLSession
-
getLastAccessedTime
public final long getLastAccessedTime()- Specified by:
getLastAccessedTime
in interfaceSSLSession
-
invalidate
public final void invalidate()- Specified by:
invalidate
in interfaceSSLSession
-
isValid
public final boolean isValid()- Specified by:
isValid
in interfaceSSLSession
-
putValue
- Specified by:
putValue
in interfaceSSLSession
-
getValue
- Specified by:
getValue
in interfaceSSLSession
-
removeValue
- Specified by:
removeValue
in interfaceSSLSession
-
getValueNames
- Specified by:
getValueNames
in interfaceSSLSession
-
getPeerCertificates
- Specified by:
getPeerCertificates
in interfaceConscryptSession
- Specified by:
getPeerCertificates
in interfaceSSLSession
- Throws:
SSLPeerUnverifiedException
-
getLocalCertificates
- Specified by:
getLocalCertificates
in interfaceSSLSession
-
getPeerCertificateChain
- Specified by:
getPeerCertificateChain
in interfaceSSLSession
- Throws:
SSLPeerUnverifiedException
-
getPeerPrincipal
- Specified by:
getPeerPrincipal
in interfaceSSLSession
- Throws:
SSLPeerUnverifiedException
-
getLocalPrincipal
- Specified by:
getLocalPrincipal
in interfaceSSLSession
-
getCipherSuite
- Specified by:
getCipherSuite
in interfaceSSLSession
-
getProtocol
- Specified by:
getProtocol
in interfaceSSLSession
-
getPeerHost
- Specified by:
getPeerHost
in interfaceSSLSession
-
getPeerPort
public final int getPeerPort()- Specified by:
getPeerPort
in interfaceSSLSession
-
getPacketBufferSize
public final int getPacketBufferSize()- Specified by:
getPacketBufferSize
in interfaceSSLSession
-
getApplicationBufferSize
public final int getApplicationBufferSize()- Specified by:
getApplicationBufferSize
in interfaceSSLSession
-
getApplicationProtocol
- Specified by:
getApplicationProtocol
in interfaceConscryptSession
-