abstract class HandshakeContext extends Object implements ConnectionContext
| 限定符 | 构造器和说明 |
|---|---|
protected |
HandshakeContext(SSLContextImpl sslContext,
TransportContext conContext) |
protected |
HandshakeContext(TransportContext conContext)
Constructor for PostHandshakeContext
|
| 限定符和类型 | 方法和说明 |
|---|---|
(专用程序包) void |
dispatch(byte handshakeType,
ByteBuffer fragment) |
(专用程序包) void |
dispatch(byte handshakeType,
Plaintext plaintext) |
private static List<CipherSuite> |
getActiveCipherSuites(List<ProtocolVersion> enabledProtocols,
List<CipherSuite> enabledCipherSuites,
AlgorithmConstraints algorithmConstraints) |
private static List<ProtocolVersion> |
getActiveProtocols(List<ProtocolVersion> enabledProtocols,
List<CipherSuite> enabledCipherSuites,
AlgorithmConstraints algorithmConstraints) |
(专用程序包) static byte |
getHandshakeType(TransportContext conContext,
Plaintext plaintext)
Parse the handshake record and return the contentType
|
(专用程序包) List<SNIServerName> |
getRequestedServerNames() |
private void |
initialize() |
private static boolean |
isActivatable(CipherSuite suite,
AlgorithmConstraints algorithmConstraints,
Map<SupportedGroupsExtension.NamedGroupType,Boolean> cachedStatus) |
(专用程序包) boolean |
isNegotiable(CipherSuite cs)
Check if the given cipher suite is enabled and available within
the current active cipher suites.
|
(专用程序包) static boolean |
isNegotiable(List<CipherSuite> proposed,
CipherSuite cs)
Check if the given cipher suite is enabled and available within
the proposed cipher suite list.
|
(专用程序包) static boolean |
isNegotiable(List<CipherSuite> proposed,
ProtocolVersion protocolVersion,
CipherSuite cs)
Check if the given cipher suite is enabled and available within
the proposed cipher suite list and specific protocol version.
|
(专用程序包) boolean |
isNegotiable(ProtocolVersion protocolVersion)
Check if the given protocol version is enabled and available.
|
(专用程序包) abstract void |
kickstart() |
static final boolean allowUnsafeRenegotiation
static final boolean allowLegacyHelloMessages
LinkedHashMap<Byte,SSLConsumer> handshakeConsumers
final HashMap<Byte,HandshakeProducer> handshakeProducers
final SSLContextImpl sslContext
final TransportContext conContext
final SSLConfiguration sslConfig
final List<ProtocolVersion> activeProtocols
final List<CipherSuite> activeCipherSuites
final AlgorithmConstraints algorithmConstraints
final ProtocolVersion maximumActiveProtocol
final HandshakeOutStream handshakeOutput
final HandshakeHash handshakeHash
SSLSessionImpl handshakeSession
boolean handshakeFinished
boolean kickstartMessageDelivered
boolean isResumption
SSLSessionImpl resumingSession
final Queue<Map.Entry<Byte,ByteBuffer>> delegatedActions
volatile boolean taskDelegated
volatile Exception delegatedThrown
ProtocolVersion negotiatedProtocol
CipherSuite negotiatedCipherSuite
boolean t12WithGMCipherSuite
final List<SSLPossession> handshakePossessions
final List<SSLCredentials> handshakeCredentials
SSLKeyDerivation handshakeKeyDerivation
SSLKeyExchange handshakeKeyExchange
SecretKey baseReadSecret
SecretKey baseWriteSecret
int clientHelloVersion
String applicationProtocol
RandomCookie clientHelloRandom
RandomCookie serverHelloRandom
byte[] certRequestContext
final Map<SSLExtension,SSLExtension.SSLExtensionSpec> handshakeExtensions
int maxFragmentLength
List<SignatureScheme> localSupportedSignAlgs
List<SignatureScheme> peerRequestedSignatureSchemes
List<SignatureScheme> peerRequestedCertSignSchemes
X500Principal[] peerSupportedAuthorities
List<SupportedGroupsExtension.NamedGroup> clientRequestedNamedGroups
SupportedGroupsExtension.NamedGroup serverSelectedNamedGroup
List<SNIServerName> requestedServerNames
SNIServerName negotiatedServerName
boolean staplingActive
protected HandshakeContext(SSLContextImpl sslContext, TransportContext conContext) throws IOException
IOExceptionprotected HandshakeContext(TransportContext conContext)
private void initialize()
private static List<ProtocolVersion> getActiveProtocols(List<ProtocolVersion> enabledProtocols, List<CipherSuite> enabledCipherSuites, AlgorithmConstraints algorithmConstraints)
private static List<CipherSuite> getActiveCipherSuites(List<ProtocolVersion> enabledProtocols, List<CipherSuite> enabledCipherSuites, AlgorithmConstraints algorithmConstraints)
static byte getHandshakeType(TransportContext conContext, Plaintext plaintext) throws IOException
IOExceptionvoid dispatch(byte handshakeType,
Plaintext plaintext)
throws IOException
IOExceptionvoid dispatch(byte handshakeType,
ByteBuffer fragment)
throws IOException
IOExceptionabstract void kickstart()
throws IOException
IOExceptionboolean isNegotiable(CipherSuite cs)
static final boolean isNegotiable(List<CipherSuite> proposed, CipherSuite cs)
static final boolean isNegotiable(List<CipherSuite> proposed, ProtocolVersion protocolVersion, CipherSuite cs)
boolean isNegotiable(ProtocolVersion protocolVersion)
private static boolean isActivatable(CipherSuite suite, AlgorithmConstraints algorithmConstraints, Map<SupportedGroupsExtension.NamedGroupType,Boolean> cachedStatus)
List<SNIServerName> getRequestedServerNames()
Copyright © 2023. All rights reserved.