static final class ClientHello.ClientHelloMessage extends SSLHandshake.HandshakeMessage
| 限定符和类型 | 字段和说明 |
|---|---|
(专用程序包) int[] |
cipherSuiteIds |
(专用程序包) List<CipherSuite> |
cipherSuites |
(专用程序包) RandomCookie |
clientRandom |
(专用程序包) int |
clientVersion |
(专用程序包) byte[] |
compressionMethod |
(专用程序包) SSLExtensions |
extensions |
private static byte[] |
NULL_COMPRESSION |
(专用程序包) SessionId |
sessionId |
handshakeContext| 构造器和说明 |
|---|
ClientHelloMessage(HandshakeContext handshakeContext,
ByteBuffer m,
SSLExtension[] supportedExtensions) |
ClientHelloMessage(HandshakeContext handshakeContext,
int clientVersion,
SessionId sessionId,
List<CipherSuite> cipherSuites,
SecureRandom generator) |
| 限定符和类型 | 方法和说明 |
|---|---|
private static int[] |
getCipherSuiteIds(List<CipherSuite> cipherSuites) |
private List<String> |
getCipherSuiteNames() |
private static List<CipherSuite> |
getCipherSuites(int[] ids) |
private byte[] |
getEncodedCipherSuites() |
(专用程序包) byte[] |
getHeaderBytes() |
SSLHandshake |
handshakeType() |
int |
messageLength() |
(专用程序包) static void |
readPartial(TransportContext tc,
ByteBuffer m) |
void |
send(HandshakeOutStream hos) |
(专用程序包) void |
sendCore(HandshakeOutStream hos) |
String |
toString() |
writefinal int clientVersion
final RandomCookie clientRandom
final SessionId sessionId
final int[] cipherSuiteIds
final List<CipherSuite> cipherSuites
final byte[] compressionMethod
final SSLExtensions extensions
private static final byte[] NULL_COMPRESSION
ClientHelloMessage(HandshakeContext handshakeContext, int clientVersion, SessionId sessionId, List<CipherSuite> cipherSuites, SecureRandom generator)
ClientHelloMessage(HandshakeContext handshakeContext, ByteBuffer m, SSLExtension[] supportedExtensions) throws IOException
IOExceptionstatic void readPartial(TransportContext tc, ByteBuffer m) throws IOException
IOExceptionbyte[] getHeaderBytes()
private static int[] getCipherSuiteIds(List<CipherSuite> cipherSuites)
private static List<CipherSuite> getCipherSuites(int[] ids)
private byte[] getEncodedCipherSuites()
public SSLHandshake handshakeType()
public int messageLength()
public void send(HandshakeOutStream hos) throws IOException
send 在类中 SSLHandshake.HandshakeMessageIOExceptionvoid sendCore(HandshakeOutStream hos) throws IOException
IOExceptionCopyright © 2023. All rights reserved.