ikev2

(ikev2).IKEMessage

IKEMessage is the IKEv2 message. IKEv2 implements a limited subset of IKEv2 Protocol, specifically the IKE_NOTIFY and IKE_NONCE payloads and the IKE_SA_INIT exchange. Kind: inner class of ikev2

ikeMessage.AppendPayload(payload)

AppendPayload appends a payload to the IKE message Kind: instance method of IKEMessage
ParamTypeDescription
payloadobjectThe payload to append to the IKE message.
Example
let m = require('nuclei/ikev2');
let ike = m.IKEMessage();
ike.AppendPayload({data: 'test'});

ikeMessage.Encode() ⇒ Uint8Array

Encode encodes the final IKE message Kind: instance method of IKEMessage
Returns: Uint8Array - - The encoded IKE message.
Throws:
  • error - The error encountered during encoding.
Example
let m = require('nuclei/ikev2');
let ike = m.IKEMessage();
let encoded = ike.Encode();