Skip to main content

Module authentication_policy

Module authentication_policy 

Source
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 BACnetAuthenticationPolicy SEQUENCE at offset.
encode_authentication_policy
Encode one BACnetAuthenticationPolicy SEQUENCE: 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].