Class: SalmonAuthConfig

SalmonAuthConfig(contents)

Device Authorization Configuration. This represents the authorization that will be provided to the target device to allow writing operations for a virtual drive.

Constructor

new SalmonAuthConfig(contents)

Instantiate a class with the properties of the authorization config file.
Parameters:
Name Type Description
contents The byte array that contains the contents of the auth config file.
Source:

Classes

SalmonAuthConfig

Methods

getAuthId()

Get the authorization ID for the target device.
Source:
Returns:

getDriveId()

Get the drive ID to grant authorization for.
Source:
Returns:

getMaxNonce()

Get the nonce maximum value the target device will use.
Source:
Returns:

getStartNonce()

Get the nonce maximum value the target device will use.
Source:
Returns:

(async, static) exportAuthFile(targetAuthId, targetDir, filename)

Parameters:
Name Type Description
targetAuthId The authorization id of the target device.
targetDir The target dir the file will be written to.
filename The filename of the auth config file.
Source:
Throws:
Exception

(async, static) importAuthFile(authConfigFile)

Import the device authorization file.
Parameters:
Name Type Description
authConfigFile The filepath to the authorization file.
Source:
Throws:
Exception