Package org.bouncycastle.tls
Class ServerHello
java.lang.Object
org.bouncycastle.tls.ServerHello
-
Constructor Summary
ConstructorsConstructorDescriptionServerHello(byte[] sessionID, int cipherSuite, Hashtable extensions) ServerHello(ProtocolVersion version, byte[] random, byte[] sessionID, int cipherSuite, Hashtable extensions) -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(TlsContext context, OutputStream output) Encode thisServerHelloto anOutputStream.intbyte[]byte[]booleanstatic ServerHelloparse(ByteArrayInputStream input) Parse aServerHellofrom aByteArrayInputStream.
-
Constructor Details
-
ServerHello
-
ServerHello
public ServerHello(ProtocolVersion version, byte[] random, byte[] sessionID, int cipherSuite, Hashtable extensions)
-
-
Method Details
-
getCipherSuite
public int getCipherSuite() -
getExtensions
-
getRandom
public byte[] getRandom() -
getSessionID
public byte[] getSessionID() -
getVersion
-
isHelloRetryRequest
public boolean isHelloRetryRequest() -
encode
Encode thisServerHelloto anOutputStream.- Parameters:
context- theTlsContextof the current connection.output- theOutputStreamto encode to.- Throws:
IOException
-
parse
Parse aServerHellofrom aByteArrayInputStream.- Parameters:
input- theByteArrayInputStreamto parse from.- Returns:
- a
ServerHelloobject. - Throws:
IOException
-