Constructor
new AuthenticationModule()
AuthenticationModule default constructor.
Methods
(static) deserialize(xmlData) → {AuthenticationModule|null}
Create a new AuthenticationModule instance from a serialized one.
Parameters:
Name | Type | Description |
---|---|---|
xmlData |
Serialized AuthenticationModule (xml format). |
Returns:
Deserialized AuthenticationModule. Or null if the serialized data is invalid.
- Type
- AuthenticationModule | null
getAccessType() → {AccessType}
Returns:
Type of access controlled by this module.
- Type
- AccessType
getLastRecord() → {string}
Returns:
Last data recorded (badge number, FingerIndex name...).
- Type
- string
getSerialNumber() → {string}
Returns:
Serial number of the module.
- Type
- string
isMaster() → {boolean}
Returns:
If true, the module controls the "master" door. Otherwise the "slave" door.
- Type
- boolean
serialize() → {string}
Format the internal data as an XML string and encode it with base64.
Returns:
The base64 encoded XML Inventory.
- Type
- string