Class ServerHello


  • public class ServerHello
    extends java.lang.Object
    • Constructor Detail

      • ServerHello

        public ServerHello​(byte[] sessionID,
                           int cipherSuite,
                           java.util.Hashtable extensions)
      • ServerHello

        public ServerHello​(ProtocolVersion version,
                           byte[] random,
                           byte[] sessionID,
                           int cipherSuite,
                           java.util.Hashtable extensions)
    • Method Detail

      • getCipherSuite

        public int getCipherSuite()
      • getExtensions

        public java.util.Hashtable getExtensions()
      • getRandom

        public byte[] getRandom()
      • getSessionID

        public byte[] getSessionID()
      • isHelloRetryRequest

        public boolean isHelloRetryRequest()
      • encode

        public void encode​(TlsContext context,
                           java.io.OutputStream output)
                    throws java.io.IOException
        Encode this ServerHello to an OutputStream.
        Parameters:
        context - the TlsContext of the current connection.
        output - the OutputStream to encode to.
        Throws:
        java.io.IOException
      • parse

        public static ServerHello parse​(java.io.ByteArrayInputStream input)
                                 throws java.io.IOException
        Parse a ServerHello from a ByteArrayInputStream.
        Parameters:
        input - the ByteArrayInputStream to parse from.
        Returns:
        a ServerHello object.
        Throws:
        java.io.IOException