public class ClientHello
extends java.lang.Object
Constructor and Description |
---|
ClientHello(ProtocolVersion version,
byte[] random,
byte[] sessionID,
byte[] cookie,
int[] cipherSuites,
java.util.Hashtable extensions,
int bindersSize) |
Modifier and Type | Method and Description |
---|---|
void |
encode(TlsContext context,
java.io.OutputStream output)
Encode this
ClientHello to an OutputStream . |
int |
getBindersSize() |
int[] |
getCipherSuites() |
ProtocolVersion |
getClientVersion()
Deprecated.
Use
getVersion() instead. |
byte[] |
getCookie() |
java.util.Hashtable |
getExtensions() |
byte[] |
getRandom() |
byte[] |
getSessionID() |
ProtocolVersion |
getVersion() |
static ClientHello |
parse(java.io.ByteArrayInputStream messageInput,
java.io.OutputStream dtlsOutput)
Parse a
ClientHello from a ByteArrayInputStream . |
public ClientHello(ProtocolVersion version, byte[] random, byte[] sessionID, byte[] cookie, int[] cipherSuites, java.util.Hashtable extensions, int bindersSize)
public int getBindersSize()
public int[] getCipherSuites()
public ProtocolVersion getClientVersion()
getVersion()
instead.public byte[] getCookie()
public java.util.Hashtable getExtensions()
public byte[] getRandom()
public byte[] getSessionID()
public ProtocolVersion getVersion()
public void encode(TlsContext context, java.io.OutputStream output) throws java.io.IOException
ClientHello
to an OutputStream
.output
- the OutputStream
to encode to.java.io.IOException
public static ClientHello parse(java.io.ByteArrayInputStream messageInput, java.io.OutputStream dtlsOutput) throws TlsFatalAlert
ClientHello
from a ByteArrayInputStream
.messageInput
- the ByteArrayInputStream
to parse from.dtlsOutput
- for DTLS this should be non-null; the input is copied to this
OutputStream
, minus the cookie field.ClientHello
object.TlsFatalAlert