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.
  • 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

      public ServerHello​(HandshakeIODataStream in, int length) throws IOException
      Creates inbound message
      Parameters:
      in -
      length -
      Throws:
      IOException
  • Method Details

    • send

      public void send​(HandshakeIODataStream out)
      Sends message
      Parameters:
      out -
    • getRandom

      public byte[] getRandom()
      Returns server random
      Returns:
    • getType

      public int getType()
      Returns message type
      Returns: