Class: SequenceSerializer

SequenceSerializer()

Serializes sequences for all the drives the device is authorized.

Constructor

new SequenceSerializer()

Source:

Classes

SequenceSerializer

Methods

deserialize(contents) → {Map.<string, NonceSequence>}

Deserialize sequences from json string.
Parameters:
Name Type Description
contents string The contents containing the nonce sequences.
Source:
Throws:
SequenceException Thrown if error with the nonce sequence
Returns:
The sequences
Type
Map.<string, NonceSequence>

serialize(driveAuthEntries) → {string}

Serialize the sequences to a json string.
Parameters:
Name Type Description
driveAuthEntries Map.<string, NonceSequence> The sequences to convert to text.
Source:
Throws:
SequenceException Thrown if error with the nonce sequence
Returns:
The contents
Type
string