Path: redb-route/redb.Route.As4/Security/WsSecurityNames.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/Security/WsSecurityNames.cs
----
namespace redb.Route.As4.Security;
/// Namespaces and URIs of WS-Security, the SwA profile and XML Signature / Encryption used by AS4.
internal static class WsSecurityNames
{
public const string Soap12 = "http://www.w3.org/2003/05/soap-envelope";
public const string Wsse = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
public const string Wsse11 = "http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd";
public const string Wsu = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
public const string Ds = "http://www.w3.org/2000/09/xmldsig#";
public const string Xenc = "http://www.w3.org/2001/04/xmlenc#";
public const string Xenc11 = "http://www.w3.org/2009/xmlenc11#";
public const string Eb = "http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/";
/// X.509 v3 token type of a wsse:BinarySecurityToken and of a wsse:Reference to one.
public const string X509V3 = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3";
/// Value type of a wsse:KeyIdentifier carrying a Subject Key Identifier.
public const string X509SubjectKeyIdentifier = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509SubjectKeyIdentifier";
/// Base64 encoding type of token values.
public const string Base64Binary = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary";
/// SwA profile: signature over the content of a MIME part, headers excluded.
public const string AttachmentContentSignatureTransform = "http://docs.oasis-open.org/wss/oasis-wss-SwAProfile-1.1#Attachment-Content-Signature-Transform";
/// SwA profile: the ciphertext replaces the content of a MIME part.
public const string AttachmentCiphertextTransform = "http://docs.oasis-open.org/wss/oasis-wss-SwAProfile-1.1#Attachment-Ciphertext-Transform";
/// SwA profile xenc:EncryptedData/@Type: only the part content is encrypted.
public const string AttachmentContentOnly = "http://docs.oasis-open.org/wss/oasis-wss-SwAProfile-1.1#Attachment-Content-Only";
/// The cid: URI scheme of references to MIME parts.
public const string CidPrefix = "cid:";
/// Exclusive XML canonicalization without comments.
public const string ExcC14N = "http://www.w3.org/2001/10/xml-exc-c14n#";
/// The Content-ID a cid: URI names (RFC 2392 allows percent-encoding).
public static string ContentId(string cidUri) => Uri.UnescapeDataString(cidUri[CidPrefix.Length..]);
/// The cid: URI of a Content-ID.
public static string CidUri(string contentId) => CidPrefix + contentId;
}