#[non_exhaustive]pub enum AuthPath {
LocalList,
Roaming,
AdHoc,
PlugAndCharge,
AutoCharge,
RemoteCommand,
}Expand description
The mechanism that authorised a session.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
LocalList
The station’s own local authorisation list or cache decided.
Roaming
An Authorize went to the e-mobility provider, directly or through a
roaming hub, and came back affirmative.
AdHoc
No contract at all: a payment card at the point, or a web/QR flow. The path AFIR requires every public point to offer.
PlugAndCharge
ISO 15118 Plug & Charge: the vehicle presented a contract certificate.
AutoCharge
The vehicle was recognised by its MAC address.
Not a standard, not authenticated, and trivially spoofable — it is
modelled because the field uses it, and kept distinct from
Self::PlugAndCharge because the two are constantly conflated in
marketing and must never be conflated in evidence.
RemoteCommand
A backend command (RemoteStartTransaction, StartSession) began it.
Implementations§
Source§impl AuthPath
impl AuthPath
Sourcepub const fn is_contract_free(self) -> bool
pub const fn is_contract_free(self) -> bool
Whether this path works without the driver holding a contract.
The AFIR Art. 5(1) question, asked of a session rather than of a station.
Sourcepub const fn is_cryptographic(self) -> bool
pub const fn is_cryptographic(self) -> bool
Whether the driver was identified cryptographically.
Sourcepub const fn strongest_plausible_level(self) -> IdentificationStrength
pub const fn strongest_plausible_level(self) -> IdentificationStrength
The strongest OCMF identification level this path can honestly support.
Used to cross-check a session against its own signed records: a session
recorded as Self::AutoCharge whose record claims SECURE is two
stories about one event, and the one with a signature behind it is not
the one that can be right — a MAC address off the wire is not a secure
feature under any reading of [OCMF Tab. 11].
The mapping is deliberately generous — it is a ceiling, not an expectation — because a station may under-report and that is not a fault. Over-reporting is.
§Read off Tables 13–16, not off the decision
[OCMF Tab. 11] grades how the user was identified; Tables 13–16
say which identifications each mechanism can carry. The two axes are
largely orthogonal, so a ceiling set from who decided refuses ordinary
hardware: a local list decides against an RFID card, and RFID_PSK
[OCMF Tab. 13] — a secured card — is Table 11’s own example of
SECURE. A backend Authorize can answer OCPP_CERTIFIED
[OCMF Tab. 14], which is CERTIFIED; so can a remote start.
What stays low is what cannot rise: an unauthenticated MAC address, and an ad-hoc session that presented no contract for anything to certify.