Package org.conscrypt
Class ServerHello
java.lang.Object
org.conscrypt.Message
org.conscrypt.ServerHello
public class ServerHello extends Message
Represents server hello message.
- See Also:
- TLS 1.0 spec., 7.4.1.3. Server hello.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ServerHello(SecureRandom sr, byte[] server_version, byte[] session_id, CipherSuite cipher_suite, byte compression_method)Creates outbound messageServerHello(HandshakeIODataStream in, int length)Creates inbound message -
Method Summary
Modifier and Type Method Description byte[]getRandom()Returns server randomintgetType()Returns message typevoidsend(HandshakeIODataStream out)Sends messageMethods inherited from class org.conscrypt.Message
fatalAlert, fatalAlert, length
-
Constructor Details
-
ServerHello
public ServerHello(SecureRandom sr, byte[] server_version, byte[] session_id, CipherSuite cipher_suite, byte compression_method)Creates outbound message- Parameters:
sr-server_version-session_id-cipher_suite-compression_method-
-
ServerHello
Creates inbound message- Parameters:
in-length-- Throws:
IOException
-
-
Method Details
-
send
Sends message- Parameters:
out-
-
getRandom
public byte[] getRandom()Returns server random- Returns:
-
getType
public int getType()Returns message type- Returns:
-