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 ExternalSessionprivate static final String[]private static final String[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal intfinal Stringfinal longfinal byte[]getId()final longfinal Certificate[]final Principalfinal String[]final intfinal X509Certificate[]final Stringfinal intfinal Principalfinal byte[]Returns the signed certificate timestamp (SCT) received from the peer.final String[]final Stringfinal Stringfinal SSLSessionContextfinal List<byte[]> Provides forward-compatibility with Java 9.final Objectfinal String[]final voidfinal booleanisValid()final voidfinal voidMethods 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:
getLocalSupportedSignatureAlgorithmsin classExtendedSSLSession
-
getPeerSupportedSignatureAlgorithms
- Specified by:
getPeerSupportedSignatureAlgorithmsin classExtendedSSLSession
-
getRequestedServerName
- Specified by:
getRequestedServerNamein interfaceConscryptSession
-
getStatusResponses
Provides forward-compatibility with Java 9.- Specified by:
getStatusResponsesin interfaceConscryptSession- Overrides:
getStatusResponsesin classExtendedSSLSession- See Also:
-
getPeerSignedCertificateTimestamp
public final 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 final byte[] getId()- Specified by:
getIdin interfaceSSLSession
-
getSessionContext
- Specified by:
getSessionContextin interfaceSSLSession
-
getCreationTime
public final long getCreationTime()- Specified by:
getCreationTimein interfaceSSLSession
-
getLastAccessedTime
public final long getLastAccessedTime()- Specified by:
getLastAccessedTimein interfaceSSLSession
-
invalidate
public final void invalidate()- Specified by:
invalidatein interfaceSSLSession
-
isValid
public final 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 final int getPeerPort()- Specified by:
getPeerPortin interfaceSSLSession
-
getPacketBufferSize
public final int getPacketBufferSize()- Specified by:
getPacketBufferSizein interfaceSSLSession
-
getApplicationBufferSize
public final int getApplicationBufferSize()- Specified by:
getApplicationBufferSizein interfaceSSLSession
-
getApplicationProtocol
- Specified by:
getApplicationProtocolin interfaceConscryptSession
-