public class SupportedPointFormatsExtension extends HelloExtension
| Modifier and Type | Class and Description |
|---|---|
static class |
SupportedPointFormatsExtension.ECPointFormat
See RFC 4492,
5.1.2.
|
HelloExtension.ExtensionType| Modifier and Type | Field and Description |
|---|---|
static SupportedPointFormatsExtension |
DEFAULT_POINT_FORMATS_EXTENSION
Default ec point format extension.
|
LENGTH_BITS, TYPE_BITS| Modifier and Type | Method and Description |
|---|---|
protected void |
addExtensionData(org.eclipse.californium.elements.util.DatagramWriter writer)
Adds binary encoding of this extension's data.
|
boolean |
contains(SupportedPointFormatsExtension.ECPointFormat format) |
static HelloExtension |
fromExtensionDataReader(org.eclipse.californium.elements.util.DatagramReader extensionDataReader) |
int |
getLength()
Gets the overall length of this extension's corresponding Extension struct.
|
String |
toString() |
fromExtensionDataReader, toByteArraypublic static final SupportedPointFormatsExtension DEFAULT_POINT_FORMATS_EXTENSION
public boolean contains(SupportedPointFormatsExtension.ECPointFormat format)
public int getLength()
HelloExtensionNote that this includes the 2 bytes indicating the extension type.
getLength in class HelloExtensionpublic String toString()
toString in class HelloExtensionprotected void addExtensionData(org.eclipse.californium.elements.util.DatagramWriter writer)
HelloExtensionThis implementation does not do anything. Sub-classes should override this method and use the passed-in writer to add their extension_data bytes to the Extension data structure.
NB: Subclasses MUST NOT write the extension's type code to the writer
as this will already have been done by the HelloExtension.toByteArray() method.
addExtensionData in class HelloExtensionwriter - the writer to use for serializationpublic static HelloExtension fromExtensionDataReader(org.eclipse.californium.elements.util.DatagramReader extensionDataReader)
Copyright © 2023 Eclipse Foundation. All rights reserved.