Methods
AppendPayload(payload)
AppendPayload appends a payload to the IKE message
Parameters:
Name | Type | Description |
---|---|---|
payload | object | The payload to append to the IKE message. |
- Source
Example
let m = require('nuclei/ikev2');
let ike = m.IKEMessage();
ike.AppendPayload({data: 'test'});
Encode() → {Uint8Array}
Encode encodes the final IKE message
- Source
Throws:
- - The error encountered during encoding.
- Type
- error
Returns:
- The encoded IKE message.
- Type:
- Uint8Array
Example
let m = require('nuclei/ikev2');
let ike = m.IKEMessage();
let encoded = ike.Encode();