public class ServerHello extends Message
Constructor and Description |
---|
ServerHello(HandshakeIODataStream in,
int length)
Creates inbound message
|
ServerHello(SecureRandom sr,
byte[] server_version,
byte[] session_id,
CipherSuite cipher_suite,
byte compression_method)
Creates outbound message
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getRandom()
Returns server random
|
int |
getType()
Returns message type
|
void |
send(HandshakeIODataStream out)
Sends message
|
fatalAlert, fatalAlert, length
public ServerHello(SecureRandom sr, byte[] server_version, byte[] session_id, CipherSuite cipher_suite, byte compression_method)
sr
- server_version
- session_id
- cipher_suite
- compression_method
- public ServerHello(HandshakeIODataStream in, int length) throws IOException
in
- length
- IOException
public void send(HandshakeIODataStream out)
out
- public byte[] getRandom()
public int getType()