Class EarlyDataExtension
java.lang.Object
tech.kwik.agent15.extension.EarlyDataExtension
- All Implemented Interfaces:
Extension
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getBytes()Serializes the extension to a byte array, including the extension type and length.longintgetType()static EarlyDataExtensionparse(ByteBuffer buffer, TlsConstants.HandshakeType context) Parses an early data extension from a byte stream.toString()
-
Constructor Details
-
EarlyDataExtension
public EarlyDataExtension() -
EarlyDataExtension
public EarlyDataExtension(long maxEarlyDataSize)
-
-
Method Details
-
parse
public static EarlyDataExtension parse(ByteBuffer buffer, TlsConstants.HandshakeType context) throws DecodeErrorException Parses an early data extension from a byte stream.- Parameters:
buffer-context- indicates in which handshake message the extension occurs- Throws:
DecodeErrorException
-
getBytes
-
getMaxEarlyDataSize
public long getMaxEarlyDataSize() -
toString
-
getType
-