Skip to main content

Module denm_ssp

Expand description

DENM Service Specific Permissions (ETSI TS 103 831 V2.3.1 (2025-11), clause 6.2.2.2).

The SSP of a DENM Authorization Ticket is a BitmapSsp: octet 0 is the SSP version, octets 1 to 4 hold one bit per cause code (Table 10). A DENM is consistent with the SSP when the bit of its cause code is set.

Mirrors flexstack/facilities/decentralized_environmental_notification_service/denm_ssp.py.

Functionsยง

cause_code_of_choice
Cause code value of a CauseCodeChoice, from the alternative name, which ends with the value (e.g. accident2 -> 2), as in the Python stack.
cause_code_ssp_bit
Octet index and bit mask of a cause code value (Table 10).
cause_code_value
Cause code value of a DENM; None for a DENM without situation container.
permissions_bitmap
SSP bits a DENM needs (Table 10), as the permissions of the signing request: the sign service only signs with an AT whose SSP grants them. Octet 0 (SSP version) is not requested. A DENM without cause code (a termination) or with a cause code without Table 10 bit requests none.
ssp_consistent
SSP check of the receiving ITS-S (clause 8.4.2): true when no SSP is available, when the DENM has no cause code (termination DENM), or when the SSP permits the cause code.
ssp_permits_cause_code
True when the DENM SSP allows signing DENMs with cause_code. A cause code without a Table 10 bit, or whose octet lies beyond the SSP length, is not permitted.