Constructor
new NonceSequence(id, authId, nextNonce, maxNonce, status)
Instantiate a nonce sequence with the provided authorization id.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
id |
The Id for this sequence. | ||
authId |
null | The authorization id for this device and drive. | |
nextNonce |
null | The next available nonce to be used. | |
maxNonce |
null | The maximum nonce. | |
status |
null | The status of the sequencer. |
Classes
Members
authId
The authorization id for a specific device.
maxNonce
The maximum nonce.
nextNonce
Then next available nonce.
status
The current status of the sequence.
Methods
getAuthId()
Get the authorization id for a specific device.
Returns:
getId()
The id for this sequence.
Returns:
getMaxNonce()
Get the max nonce.
Returns:
getNextNonce()
Get the next nonce.
Returns:
getStatus()
Get the sequence status.
Returns:
setAuthId(authId)
Set the authorization Id for a specific device.
Parameters:
Name | Type | Description |
---|---|---|
authId |
The authorization id |
setId(id)
Set the id.
Parameters:
Name | Type | Description |
---|---|---|
id |
The sequence id |
setMaxNonce(maxNonce)
Set the max nonce.
Parameters:
Name | Type | Description |
---|---|---|
maxNonce |
The max nonce |
setNextNonce(nextNonce)
Set the next nonce.
Parameters:
Name | Type | Description |
---|---|---|
nextNonce |
The next nonce |
setStatus(status)
Set the sequence status.
Parameters:
Name | Type | Description |
---|---|---|
status |
The status |