AS4 profile for the German energy and water industry (Bundesverband der Energie- und Wasserwirtschaft).
The BDEW profile is used by German energy and water market participants for electronic data interchange. It is based on the AS4 standard and is tailored to the requirements of the German energy sector (BDEW – Bundesverband der Energie- und Wasserwirtschaft) as well as DVGW (gas and water) and BAHN (railway).
The BDEW profile uses ECDSA signatures (unlike most other profiles that use RSA). This is mandated by BSI TR03116-3 section 9.1 and BDEW AS4 profile section 2.2.6.2.1.
BDEW requires ECDSA with the brainpoolP256r1 curve, not RSA. Using RSA will cause the compatibility validator to reject the PMode.
// Check if a given service URI is a valid BDEW serviceboolean valid = BDEWPMode.containsService("https://www.bdew.de/as4/communication/services/MP");// Check if a given action URI is a valid BDEW actionboolean validAction = BDEWPMode.containsAction(BDEWPMode.ACTION_DEFAULT);
The BDEW profile sets isInvokeSPIForPingMessage to true, meaning the custom SPI message handler will also be invoked for AS4 ping (test) messages, unlike other profiles.