- java.lang.Object
-
- net.luminis.tls.handshake.HandshakeMessage
-
- net.luminis.tls.handshake.ServerHello
-
public class ServerHello extends HandshakeMessage
https://datatracker.ietf.org/doc/html/rfc8446#section-4.1.3
-
-
Constructor Summary
Constructors Constructor Description ServerHello()ServerHello(TlsConstants.CipherSuite cipher)ServerHello(TlsConstants.CipherSuite cipher, java.util.List<Extension> extensions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getBytes()TlsConstants.CipherSuitegetCipherSuite()java.util.List<Extension>getExtensions()byte[]getRandom()TlsConstants.HandshakeTypegetType()ServerHelloparse(java.nio.ByteBuffer buffer, int length)-
Methods inherited from class net.luminis.tls.handshake.HandshakeMessage
findPositionLastExtension, parseHandshakeHeader
-
-
-
-
Constructor Detail
-
ServerHello
public ServerHello()
-
ServerHello
public ServerHello(TlsConstants.CipherSuite cipher)
-
ServerHello
public ServerHello(TlsConstants.CipherSuite cipher, java.util.List<Extension> extensions)
-
-
Method Detail
-
getType
public TlsConstants.HandshakeType getType()
- Specified by:
getTypein classHandshakeMessage
-
parse
public ServerHello parse(java.nio.ByteBuffer buffer, int length) throws TlsProtocolException
- Throws:
TlsProtocolException
-
getBytes
public byte[] getBytes()
- Specified by:
getBytesin classHandshakeMessage
-
getRandom
public byte[] getRandom()
-
getCipherSuite
public TlsConstants.CipherSuite getCipherSuite()
-
getExtensions
public java.util.List<Extension> getExtensions()
-
-