- java.lang.Object
-
- net.luminis.tls.handshake.HandshakeMessage
-
- Direct Known Subclasses:
CertificateMessage,CertificateRequestMessage,CertificateVerifyMessage,ClientHello,EncryptedExtensions,FinishedMessage,NewSessionTicketMessage,ServerHello
public abstract class HandshakeMessage extends java.lang.Objecthttps://datatracker.ietf.org/doc/html/rfc8446#section-4
-
-
Constructor Summary
Constructors Constructor Description HandshakeMessage()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static intfindPositionLastExtension(java.nio.ByteBuffer buffer)Returns the (relative) position of the last extension.abstract byte[]getBytes()abstract TlsConstants.HandshakeTypegetType()protected intparseHandshakeHeader(java.nio.ByteBuffer buffer, TlsConstants.HandshakeType expectedType, int minimumMessageSize)
-
-
-
Method Detail
-
getType
public abstract TlsConstants.HandshakeType getType()
-
parseHandshakeHeader
protected int parseHandshakeHeader(java.nio.ByteBuffer buffer, TlsConstants.HandshakeType expectedType, int minimumMessageSize) throws DecodeErrorException- Throws:
DecodeErrorException
-
getBytes
public abstract byte[] getBytes()
-
findPositionLastExtension
public static int findPositionLastExtension(java.nio.ByteBuffer buffer)
Returns the (relative) position of the last extension.- Parameters:
buffer- data to parse, buffer position should be at the point where extensions start. on return, the buffer position will be right after the last extension.- Returns:
- the start position of the last extension, relative to the start of all extensions.
-
-