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
BACnetAssignedAccessRightsSEQUENCE atoffset. - decode_
authentication_ factor - Decode one
BACnetAuthenticationFactorSEQUENCE atoffset. - decode_
authentication_ factor_ format - Decode one
BACnetAuthenticationFactorFormatSEQUENCE atoffset. - decode_
credential_ authentication_ factor - Decode one
BACnetCredentialAuthenticationFactorSEQUENCE atoffset. - encode_
assigned_ access_ rights - Encode one
BACnetAssignedAccessRightsSEQUENCE: the reference inside opening and closing tag 0, then the enable flag as context[1]. - encode_
authentication_ factor - Encode one
BACnetAuthenticationFactorSEQUENCE: format type[0], format class[1]and value[2], all primitive context tags. - encode_
authentication_ factor_ format - Encode one
BACnetAuthenticationFactorFormatSEQUENCE: 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
BACnetCredentialAuthenticationFactorSEQUENCE: the disable value as context[0], then the factor inside opening and closing tag 1.