Create and returns a SealedMessageType instance encapsulating payload signing and encryption.
Namespace: Nehta.VendorLibrary.SM.SMDAssembly: Nehta.VendorLibrary.SM.SMD (in Nehta.VendorLibrary.SM.SMD.dll) Version: 1.0.5.0 (1.0.5.0)
Syntax
C# |
---|
public static SealedMessageType GetSealedMessage( XmlDocument payload, MessageMetadataType metadata, X509Certificate2 signingCert, X509Certificate2 encryptionCert ) |
Visual Basic |
---|
Public Shared Function GetSealedMessage ( _ payload As XmlDocument, _ metadata As MessageMetadataType, _ signingCert As X509Certificate2, _ encryptionCert As X509Certificate2 _ ) As SealedMessageType |
Visual C++ |
---|
public: static SealedMessageType^ GetSealedMessage( XmlDocument^ payload, MessageMetadataType^ metadata, X509Certificate2^ signingCert, X509Certificate2^ encryptionCert ) |
Parameters
- payload
- Type: System.Xml..::..XmlDocument
The xml document payload.
- metadata
- Type: MessageMetadataType
The metadata of the message.
- signingCert
- Type: System.Security.Cryptography.X509Certificates..::..X509Certificate2
The certificate to sign the payload with.
- encryptionCert
- Type: System.Security.Cryptography.X509Certificates..::..X509Certificate2
The certificate to encrypt the payload with.