public class ServerHello
extends java.lang.Object
| Constructor and Description |
|---|
ServerHello(ProtocolVersion version,
byte[] random,
byte[] sessionID,
int cipherSuite,
java.util.Hashtable extensions) |
| Modifier and Type | Method and Description |
|---|---|
void |
encode(TlsContext context,
java.io.OutputStream output)
Encode this
ServerHello to an OutputStream. |
int |
getCipherSuite() |
java.util.Hashtable |
getExtensions() |
byte[] |
getRandom() |
byte[] |
getSessionID() |
ProtocolVersion |
getVersion() |
boolean |
isHelloRetryRequest() |
static ServerHello |
parse(java.io.ByteArrayInputStream input)
Parse a
ServerHello from a ByteArrayInputStream. |
public ServerHello(ProtocolVersion version, byte[] random, byte[] sessionID, int cipherSuite, java.util.Hashtable extensions)
public int getCipherSuite()
public java.util.Hashtable getExtensions()
public byte[] getRandom()
public byte[] getSessionID()
public ProtocolVersion getVersion()
public boolean isHelloRetryRequest()
public void encode(TlsContext context, java.io.OutputStream output) throws java.io.IOException
ServerHello to an OutputStream.output - the OutputStream to encode to.java.io.IOExceptionpublic static ServerHello parse(java.io.ByteArrayInputStream input) throws java.io.IOException
ServerHello from a ByteArrayInputStream.messageInput - the ByteArrayInputStream to parse from.ServerHello object.java.io.IOException