public class ServerHello
extends java.lang.Object
Constructor and Description |
---|
ServerHello(byte[] sessionID,
int cipherSuite,
java.util.Hashtable extensions) |
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(byte[] sessionID, int cipherSuite, java.util.Hashtable extensions)
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
.context
- the TlsContext
of the current connection.output
- the OutputStream
to encode to.java.io.IOException
public static ServerHello parse(java.io.ByteArrayInputStream input) throws java.io.IOException
ServerHello
from a ByteArrayInputStream
.input
- the ByteArrayInputStream
to parse from.ServerHello
object.java.io.IOException