Class ManagementToken
Object
|
+--ManagementToken
- class
ManagementToken
A plug-in example
Defined in 230-management-token-plugin.js
Method Summary |
Boolean
|
actionListener(<Outline> source, <String> action)
Handle action triggered from the outline context menu
|
void
|
addDeviceContextMenu(<String[]> contextMenu, <Boolean> isInitialized, <Number> authenticationState)
Add an entry to the context menu associated with the device entry in the outline
|
Object
|
deriveSOPIN(id, seed)
Derive the SO-PIN using the token management key
|
void
|
releaseManagementToken()
Release and reset the management token
|
Object
|
toString()
|
void
|
useAsManagementToken()
Use the current token as management token
|
km
Object km
RELEASE_TOKEN_ACTION
<static> Object RELEASE_TOKEN_ACTION
USE_TOKEN_ACTION
<static> Object USE_TOKEN_ACTION
ManagementToken
ManagementToken(km)
Create a plug-in instance
Parameters:
KeyManager
- ] km the associated key manager
actionListener
Boolean actionListener(<Outline> source, <String> action)
Handle action triggered from the outline context menu
Parameters:
source
- the source outline node of this action
action
- the action selected from the context menu
Returns:
true if the action was handled
addDeviceContextMenu
void addDeviceContextMenu(<String[]> contextMenu, <Boolean> isInitialized, <Number> authenticationState)
Add an entry to the context menu associated with the device entry in the outline
Parameters:
contextMenu
- the list of entries in the context menu
isInitialized
- the device is initialized
authenticationState
- the status returned in the last authentication query (SW1/SW2)
deriveSOPIN
Object deriveSOPIN(id, seed)
Derive the SO-PIN using the token management key
releaseManagementToken
void releaseManagementToken()
Release and reset the management token
toString
Object toString()
useAsManagementToken
void useAsManagementToken()
Use the current token as management token
Documentation generated by
JSDoc on Sat Feb 24 15:17:19 2024