public abstract class ECDHServerKeyExchange extends ServerKeyExchange
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ECDHServerKeyExchange.EcdhData
Utility class to keep results of reading the supported group and the
encoded point-
|
FRAGMENT_LENGTH_BITS, FRAGMENT_OFFSET_BITS, MESSAGE_HEADER_LENGTH_BYTES, MESSAGE_LENGTH_BITS, MESSAGE_SEQ_BITS, MESSAGE_TYPE_BITS| Modifier | Constructor and Description |
|---|---|
protected |
ECDHServerKeyExchange(XECDHECryptography.SupportedGroup supportedGroup,
byte[] encodedPoint,
InetSocketAddress peerAddress)
Called when reconstructing the byte array.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getEncodedPoint()
Get encoded point
|
protected int |
getNamedCurveLength() |
XECDHECryptography.SupportedGroup |
getSupportedGroup()
Get supported group for ECDH.
|
protected static ECDHServerKeyExchange.EcdhData |
readNamedCurve(org.eclipse.californium.elements.util.DatagramReader reader,
InetSocketAddress peerAddress) |
String |
toString() |
protected void |
updateSignatureForNamedCurve(Signature signature) |
protected void |
writeNamedCurve(org.eclipse.californium.elements.util.DatagramWriter writer) |
getMessageTypefragmentChanged, fragmentToByteArray, fromByteArray, fromGenericHandshakeMessage, getContentType, getFragmentLength, getFragmentOffset, getMessageLength, getMessageSeq, getNextHandshakeMessage, getRawMessage, setMessageSeq, setNextHandshakeMessage, size, toByteArray, writeTogetPeerprotected ECDHServerKeyExchange(XECDHECryptography.SupportedGroup supportedGroup, byte[] encodedPoint, InetSocketAddress peerAddress)
supportedGroup - supported group (named curve)encodedPoint - the encoded point on the curve (public key).peerAddress - the IP address and port of the peer this
message has been received from or should be sent toprotected int getNamedCurveLength()
protected void writeNamedCurve(org.eclipse.californium.elements.util.DatagramWriter writer)
protected static ECDHServerKeyExchange.EcdhData readNamedCurve(org.eclipse.californium.elements.util.DatagramReader reader, InetSocketAddress peerAddress) throws HandshakeException
HandshakeExceptionprotected void updateSignatureForNamedCurve(Signature signature) throws SignatureException
SignatureExceptionpublic XECDHECryptography.SupportedGroup getSupportedGroup()
public byte[] getEncodedPoint()
public String toString()
toString in class HandshakeMessageCopyright © 2023 Eclipse Foundation. All rights reserved.