Class Index | File Index

Classes


Class AccessController


Defined in: AccessController.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Create an default controller granting read but denying write access
Method Summary
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
Class Detail
AccessController()
Create an default controller granting read but denying write access
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

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Feb 16 2024 18:38:11 GMT+0100 (CET)