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