Package org.bouncycastle.tls
Class ClientHello
java.lang.Object
org.bouncycastle.tls.ClientHello
-
Constructor Summary
ConstructorsConstructorDescriptionClientHello(ProtocolVersion version, byte[] random, byte[] sessionID, byte[] cookie, int[] cipherSuites, Hashtable extensions, int bindersSize) -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(TlsContext context, OutputStream output) Encode thisClientHelloto anOutputStream.intint[]Deprecated.byte[]byte[]byte[]static ClientHelloparse(ByteArrayInputStream messageInput, OutputStream dtlsOutput) Parse aClientHellofrom aByteArrayInputStream.
-
Constructor Details
-
ClientHello
public ClientHello(ProtocolVersion version, byte[] random, byte[] sessionID, byte[] cookie, int[] cipherSuites, Hashtable extensions, int bindersSize)
-
-
Method Details
-
getBindersSize
public int getBindersSize() -
getCipherSuites
public int[] getCipherSuites() -
getClientVersion
Deprecated.UsegetVersion()instead. -
getCookie
public byte[] getCookie() -
getExtensions
-
getRandom
public byte[] getRandom() -
getSessionID
public byte[] getSessionID() -
getVersion
-
encode
Encode thisClientHelloto anOutputStream.- Parameters:
output- theOutputStreamto encode to.- Throws:
IOException
-
parse
public static ClientHello parse(ByteArrayInputStream messageInput, OutputStream dtlsOutput) throws TlsFatalAlert Parse aClientHellofrom aByteArrayInputStream.- Parameters:
messageInput- theByteArrayInputStreamto parse from.dtlsOutput- for DTLS this should be non-null; the input is copied to thisOutputStream, minus the cookie field.- Returns:
- a
ClientHelloobject. - Throws:
TlsFatalAlert
-
getVersion()instead.