pub enum SecurityEvent {
Show 21 variants
FirmwareUpdated,
FailedToAuthenticateAtCsms,
CsmsFailedToAuthenticate,
SettingSystemTime,
StartupOfTheDevice,
ResetOrReboot,
SecurityLogWasCleared,
ReconfigurationOfSecurityParameters,
MemoryExhaustion,
InvalidMessages,
AttemptedReplayAttacks,
TamperDetectionActivated,
InvalidFirmwareSignature,
InvalidFirmwareSigningCertificate,
InvalidCsmsCertificate,
InvalidChargingStationCertificate,
DiscardedRenewedClientCertificate,
InvalidTLSVersion,
InvalidTLSCipherSuite,
MaintenanceLoginAccepted,
MaintenanceLoginFailed,
}Expand description
Standardized SecurityEventNotificationRequest.type values.
A closed set: it holds only the values the specification
defines. The wire field is a string, so a deployment can still
send something else – from_wire returns None for that,
which is not by itself a protocol error.
Variants§
FirmwareUpdated
The Charging Station firmware is updated
FailedToAuthenticateAtCsms
The authentication credentials provided by the Charging Station were rejected by the CSMS
CsmsFailedToAuthenticate
The authentication credentials provided by the CSMS were rejected by the Charging Station
SettingSystemTime
The system time on the Charging Station was changed more than ClockCtrlr.TimeAdjustmentReportingThreshold seconds
StartupOfTheDevice
The Charging Station has booted
ResetOrReboot
The Charging Station was rebooted or reset
SecurityLogWasCleared
The security log was cleared
ReconfigurationOfSecurityParameters
Security parameters, such as keys or the security profile used, were changed
MemoryExhaustion
The Flash or RAM memory of the Charging Station is getting full
InvalidMessages
The Charging Station has received messages that are not valid OCPP messages, if signed messages, signage invalid/incorrect
AttemptedReplayAttacks
The Charging Station has received a replayed message (other than the CSMS trying to resend a message because it there was for example a network problem)
TamperDetectionActivated
The physical tamper detection sensor was triggered
InvalidFirmwareSignature
The firmware signature is not valid
InvalidFirmwareSigningCertificate
The certificate used to verify the firmware signature is not valid
InvalidCsmsCertificate
The certificate that the CSMS uses was not valid or could not be verified
InvalidChargingStationCertificate
The certificate sent to the Charging Station using the CertificateSignedRequest message is not a valid certificate
DiscardedRenewedClientCertificate
The Charging Station discarded the renewed client certificate, because it was unable to successfully establish a connection using it.
InvalidTLSVersion
The TLS version used by the CSMS is lower than 1.2 and is not allowed by the security specification
InvalidTLSCipherSuite
The CSMS did only allow connections using TLS cipher suites that are not allowed by the security specification
MaintenanceLoginAccepted
Successful login to the local maintenance interface. It is recommended to include information like the user identification and the origin of the login attempt, which can be an ip-address or a touch screen for example, to the techInfo field. For this the following format is strongly recommended: ‘{'user': '…', 'origin': '…'}’
MaintenanceLoginFailed
Failed login attempt to the local maintenance interface. It is recommended to include information like the user identification and the origin of the login attempt, which can be an ip-address or a touch screen for example, to the techInfo field. For this the following format is strongly recommended: ‘{'user': '…', 'origin': '…'}’
Implementations§
Source§impl SecurityEvent
impl SecurityEvent
Sourcepub const ALL: &'static [Self]
pub const ALL: &'static [Self]
Every value this version’s specification defines (21), in spec order.
Sourcepub fn from_wire(value: &str) -> Option<Self>
pub fn from_wire(value: &str) -> Option<Self>
Parses a wire value, returning None for values the
specification doesn’t define (e.g. a vendor’s own).
Sourcepub const fn is_critical(&self) -> bool
pub const fn is_critical(&self) -> bool
Whether the spec marks this event critical, meaning it must be reported to the CSMS even when not explicitly monitored.
Trait Implementations§
Source§impl Clone for SecurityEvent
impl Clone for SecurityEvent
Source§fn clone(&self) -> SecurityEvent
fn clone(&self) -> SecurityEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more