Path: redb-route/redb.Route.As4/As4Enums.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.As4/As4Enums.cs
----
namespace redb.Route.As4;
///
/// How a signature points at the signer's certificate (WS-Security X.509 Token Profile). eDelivery AS4
/// 1.16 asks implementations to support all three; is the most widely
/// implemented. A receiver understands all three regardless of this setting: Holodeck B2B, for one,
/// defaults to .
///
public enum As4KeyReference
{
/// The certificate travels in a wsse:BinarySecurityToken the signature references.
BinarySecurityToken,
/// The certificate is named by issuer and serial number; the receiver must already hold it.
IssuerSerial,
/// The certificate is named by its Subject Key Identifier; the receiver must already hold it.
KeyIdentifier,
///
/// The certificate travels with its certification path in a wsse:BinarySecurityToken of type
/// X509PKIPathv1 (WS-Security X.509 Token Profile §3.1.2), the authorities of
/// first and our certificate last. For a receiver that
/// trusts an authority instead of holding our certificate (eDelivery AS4 1.16 §4.3.3).
///
PkiPath,
}
/// Whether the receive server asks the trading partner for a TLS client certificate.
public enum As4ClientCertificateMode
{
/// No client certificate is requested (default).
NoCertificate,
/// A client certificate is requested but not required.
AllowCertificate,
/// A client certificate is required; the TLS handshake fails without one.
RequireCertificate,
}