public final class SupportedEllipticCurvesExtension extends HelloExtension
HelloExtension.ExtensionTypeLENGTH_BITS, TYPE_BITS| Constructor and Description |
|---|
SupportedEllipticCurvesExtension(List<XECDHECryptography.SupportedGroup> supportedGroups)
Create supported elliptic curves extension.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addExtensionData(org.eclipse.californium.elements.util.DatagramWriter writer)
Adds binary encoding of this extension's data.
|
static HelloExtension |
fromExtensionDataReader(org.eclipse.californium.elements.util.DatagramReader extensionDataReader) |
int |
getLength()
Gets the overall length of this extension's corresponding Extension struct.
|
List<XECDHECryptography.SupportedGroup> |
getSupportedGroups()
Get list of contained supported (and usable) groups (curves).
|
String |
toString() |
fromExtensionDataReader, toByteArraypublic SupportedEllipticCurvesExtension(List<XECDHECryptography.SupportedGroup> supportedGroups)
supportedGroups - the list of supported groups (named curves).protected 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)
public int getLength()
HelloExtensionNote that this includes the 2 bytes indicating the extension type.
getLength in class HelloExtensionpublic String toString()
toString in class HelloExtensionpublic List<XECDHECryptography.SupportedGroup> getSupportedGroups()
Copyright © 2023 Eclipse Foundation. All rights reserved.