Skip to main content

Module access_credential

Module access_credential 

Source
Expand description

Clause 21 codecs for the elements of two Access Credential arrays (Clause 12.35): Assigned_Access_Rights (BACnetAssignedAccessRights) and Authentication_Factors (BACnetCredentialAuthenticationFactor, which embeds a BACnetAuthenticationFactor). The Credential Data Input serves the bare factor as its Present_Value and an array of BACnetAuthenticationFactorFormat as Supported_Formats (Clause 12.36).

Each element is a bare SEQUENCE; a whole array concatenates them with no wrapper, so each decoder reads one element at offset and returns the offset just past it. A caller holding exactly one element must check that offset reaches the end of its data.

The decoders check structure only. Enumerated members up to 32 bits are kept as received, reserved and vendor values included, for the object to judge; a member wider than 32 bits is malformed.

Functions§

decode_assigned_access_rights
Decode one BACnetAssignedAccessRights SEQUENCE at offset.
decode_authentication_factor
Decode one BACnetAuthenticationFactor SEQUENCE at offset.
decode_authentication_factor_format
Decode one BACnetAuthenticationFactorFormat SEQUENCE at offset.
decode_credential_authentication_factor
Decode one BACnetCredentialAuthenticationFactor SEQUENCE at offset.
encode_assigned_access_rights
Encode one BACnetAssignedAccessRights SEQUENCE: the reference inside opening and closing tag 0, then the enable flag as context [1].
encode_authentication_factor
Encode one BACnetAuthenticationFactor SEQUENCE: format type [0], format class [1] and value [2], all primitive context tags.
encode_authentication_factor_format
Encode one BACnetAuthenticationFactorFormat SEQUENCE: the format type as context [0], then each vendor member that is present, the vendor identifier as context [1] and the vendor’s format as context [2].
encode_credential_authentication_factor
Encode one BACnetCredentialAuthenticationFactor SEQUENCE: the disable value as context [0], then the factor inside opening and closing tag 1.