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. |
Classes
Methods
getAuthId()
Get the authorization ID for the target device.
Returns:
getDriveId()
Get the drive ID to grant authorization for.
Returns:
getMaxNonce()
Get the nonce maximum value the target device will use.
Returns:
getStartNonce()
Get the nonce maximum value the target device will use.
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. |
Throws:
Exception
(async, static) importAuthFile(authConfigFile)
Import the device authorization file.
Parameters:
Name | Type | Description |
---|---|---|
authConfigFile |
The filepath to the authorization file. |
Throws:
Exception