Edit

Share via


Message.DigitalSignature Property

Definition

Gets or sets the digital signature that Message Queuing uses to authenticate the message.

public:
 property cli::array <System::Byte> ^ DigitalSignature { cli::array <System::Byte> ^ get(); void set(cli::array <System::Byte> ^ value); };
[System.Messaging.MessagingDescription("MsgDigitalSignature")]
public byte[] DigitalSignature { get; set; }
[<System.Messaging.MessagingDescription("MsgDigitalSignature")>]
member this.DigitalSignature : byte[] with get, set
Public Property DigitalSignature As Byte()

Property Value

Byte[]

An array of byte values that specifies the Message Queuing 1.0 digital signature used to authenticate the message. The default is a zero-length array.

Attributes

Exceptions

The message queue is filtered to ignore the DigitalSignature property.

The DigitalSignature property is null.

Remarks

Message Queuing uses the digital signature when authenticating messages that were sent by Message Queuing version 1.0. In most cases, Message Queuing generates and sets the DigitalSignature property when the sending application requests authentication. The receiving application uses this property to retrieve the digital signature attached to the message.

You can only use the DigitalSignature property when running Message Queuing version 2.0. The sending application must specify Message Queuing version 1.0 signatures when requesting authentication. If the sending application sends a Message Queuing version 2.0 signature, this property contains a buffer of four bytes, each containing zero.

The DigitalSignature property, together with the SenderCertificate property, is also used by connector applications when a message is sent. In this scenario, the connector application - rather than Message Queuing - generates the digital signature, which it bases on the certificate of the user sending the message.

The DigitalSignature property has a maximum array size of 256.

When you set the DigitalSignature property, you must also set the ConnectorType property. When a message is sent, Message Queuing ignores the DigitalSignature property if the ConnectorType property is not also set.

Applies to

See also