Expand description
Clause 21 codec for BACnetAuthenticationPolicy, the element of an Access
Point’s Authentication_Policy_List array (Clause 12.31.12).
A policy is a bare SEQUENCE and a whole array concatenates them with no
wrapper, so the decoder reads one policy at offset and returns the
offset just past it, the way the Access Credential element codecs do.
The decoder checks structure only. An empty entry list, entries naming another object type and indexes out of sequence all decode; the Access Point judges whether a policy is usable. An index or timeout wider than 32 bits is malformed.
Functions§
- decode_
authentication_ policy - Decode one
BACnetAuthenticationPolicySEQUENCE atoffset. - encode_
authentication_ policy - Encode one
BACnetAuthenticationPolicySEQUENCE: the entries inside opening and closing tag 0, each its Credential Data Input reference inside opening and closing tag 0 followed by its index as context[1]; then the order flag as context[1]and the timeout as context[2].