Package org.conscrypt
Class ClientHello
java.lang.Object
org.conscrypt.Message
org.conscrypt.ClientHello
public class ClientHello extends Message
Represents Client Hello message
- See Also:
- TLS 1.0 spec., 7.4.1.2. Client hello
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ClientHello(SecureRandom sr, byte[] version, byte[] ses_id, CipherSuite[] cipher_suite)Creates outbound messageClientHello(HandshakeIODataStream in)Parse V2ClientHelloClientHello(HandshakeIODataStream in, int length)Creates inbound message -
Method Summary
Modifier and Type Method Description byte[]getRandom()Returns client randomintgetType()Returns message typevoidsend(HandshakeIODataStream out)Sends messageMethods inherited from class org.conscrypt.Message
fatalAlert, fatalAlert, length
-
Constructor Details
-
ClientHello
Creates outbound message- Parameters:
sr-version-ses_id-cipher_suite-
-
ClientHello
Creates inbound message- Parameters:
in-length-- Throws:
IOException
-
ClientHello
Parse V2ClientHello- Parameters:
in-- Throws:
IOException
-
-
Method Details
-
send
Sends message- Parameters:
out-
-
getRandom
public byte[] getRandom()Returns client random- Returns:
- client random
-
getType
public int getType()Returns message type
-