pub trait ActivationAuthProvider {
// Required method
fn authenticate(
&mut self,
source_address: u16,
oem_data: &[u8],
) -> Result<(), ActivationDenialReason>;
}Expand description
Hook for OEM-specific routing activation authentication.
Called by the activation state machine when a CentralSecurity (0xFF) activation request is
received. The implementation validates the OEM-specific data in the request buffer and returns
either Ok(()) to allow activation or Err(reason) to deny it.
For Default (0x00) and WwhObd (0x01) activation types the gateway does not call this hook -
activation is granted based on source address validity alone.
§Simulation
The test implementation should use the ace-sim seeded RNG so authentication outcomes are
reproducible across simulation runs.
Required Methods§
Sourcefn authenticate(
&mut self,
source_address: u16,
oem_data: &[u8],
) -> Result<(), ActivationDenialReason>
fn authenticate( &mut self, source_address: u16, oem_data: &[u8], ) -> Result<(), ActivationDenialReason>
Validates OEM-specific authentication data for a CentralSecurity activation request.
source_address - the logical address of the tester
oem_data - the 4-byte ISO reserved / OEM buffer from the request