com.helger.phase4.bdewMaven artifact:
com.helger.phase4:phase4-bdew-client
Phase4BDEWSender sends AS4 messages conforming to the German BDEW energy market profile. The builder sets BDEW-specific defaults automatically (ECDH-ES key transport, BST Direct Reference signing, forced MIME message).
Factory method
Default settings applied by the builder
| Setting | Value |
|---|---|
| AS4 profile | bdew |
| Key identifier type (sign) | BST_DIRECT_REFERENCE |
| Key identifier type (crypt) | X509_SKI_KEY_IDENTIFIER |
| Key encryption algorithm | ECDH_ES_KEYWRAP_AES_128 |
| Encrypt symmetric session key | false |
| C14N algorithm | Exclusive C14N without comments |
| BST value type | #X509PKIPathv1 (chain) |
| Conversation ID | "" (empty, must not be changed) |
| Agreement ref | BDEW default agreement ID |
| Force MIME message | true |
BDEWUserMessageBuilder fields
Required fields
The sender AS4 party ID value.
The sender role.
The receiver AS4 party ID value.
The receiver role.
The destination AS4 endpoint URL.
body.payload(AS4OutgoingAttachment.Builder, BDEWPayloadParams)
AS4OutgoingAttachment.Builder
required
Set the payload. GZip compression is automatically applied. Optionally pass
BDEWPayloadParams for BDEW-specific MIME part properties.Crypto overrides
Override the default encryption key identifier type (
X509_SKI_KEY_IDENTIFIER).Override the default signing key identifier type (
BST_DIRECT_REFERENCE).BDEWPayloadParams
Optional BDEW-specific part properties added to the payload MIME part.BDEW document type string. Set as
BDEWDocumentType MIME part property.Document date. Set as
BDEWDocumentDate MIME part property.Document number. Set as
BDEWDocumentNo MIME part property.Document number as integer, converted to string. Since 2.1.2.
Fulfillment date. Set as
BDEWFulfillmentDate MIME part property.Subject party ID. Set as
BDEWSubjectPartyID MIME part property.Subject party role. Set as
BDEWSubjectPartyRole MIME part property.Application reference. Set as
BDEWApplicationReference MIME part property. Since 3.0.1.