Export (0) Print
Expand All

Message.DigitalSignature Property

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

Namespace:  System.Messaging
Assembly:  System.Messaging (in System.Messaging.dll)

[MessagingDescriptionAttribute("MsgDigitalSignature")]
public byte[] DigitalSignature { get; set; }

Property Value

Type: System.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.

ExceptionCondition
InvalidOperationException

The message queue is filtered to ignore the DigitalSignature property.

ArgumentException

The DigitalSignature property is null.

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.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft