Class AccessController
Defined in: AccessController.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Create an default controller granting read but denying write access
|
Method Attributes | Method Name and Description |
---|---|
checkCommandAccess(apdu, apdu)
Check if command is allowed
|
|
checkFileReadAccess(apdu, node, node)
Check if read access to file system node is allowed
|
|
checkFileWriteAccess(apdu, node, node)
Check if write access to file system node is allowed
|
Method Detail
{boolean}
checkCommandAccess(apdu, apdu)
Check if command is allowed
- Parameters:
- {APDU} apdu
- the APDU to check
- apdu
- Returns:
- true if access is allowed
{boolean}
checkFileReadAccess(apdu, node, node)
Check if read access to file system node is allowed
- Parameters:
- {APDU} apdu
- the APDU used to access the object
- {FSNode} node
- the file system object
- node
- Returns:
- true if access is allowed
{boolean}
checkFileWriteAccess(apdu, node, node)
Check if write access to file system node is allowed
- Parameters:
- {APDU} apdu
- the APDU used to access the object
- {FSNode} node
- the file system object
- node
- Returns:
- true if access is allowed