- java.lang.Object
-
- net.luminis.tls.extension.Extension
-
- Direct Known Subclasses:
ApplicationLayerProtocolNegotiationExtension,CertificateAuthoritiesExtension,EarlyDataExtension,KeyShareExtension,PreSharedKeyExtension,PskKeyExchangeModesExtension,ServerNameExtension,SignatureAlgorithmsExtension,SupportedGroupsExtension,SupportedVersionsExtension,UnknownExtension
public abstract class Extension extends java.lang.ObjectA TLS Extension. See https://tools.ietf.org/html/rfc8446#section-4.2
-
-
Constructor Summary
Constructors Constructor Description Extension()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract byte[]getBytes()protected intparseExtensionHeader(java.nio.ByteBuffer buffer, int expectedType, int minimumExtensionSize)protected intparseExtensionHeader(java.nio.ByteBuffer buffer, TlsConstants.ExtensionType expectedType, int minimumExtensionSize)
-
-
-
Method Detail
-
parseExtensionHeader
protected int parseExtensionHeader(java.nio.ByteBuffer buffer, TlsConstants.ExtensionType expectedType, int minimumExtensionSize) throws DecodeErrorException- Throws:
DecodeErrorException
-
parseExtensionHeader
protected int parseExtensionHeader(java.nio.ByteBuffer buffer, int expectedType, int minimumExtensionSize) throws DecodeErrorException- Throws:
DecodeErrorException
-
getBytes
public abstract byte[] getBytes()
-
-