Export (0) Print
Expand All

Message.DigitalSignature Property

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

[Visual Basic]
Public Property DigitalSignature As Byte ()
[C#]
public byte[] DigitalSignature {get; set;}
[C++]
public: __property unsigned char get_DigitalSignature();
public: __property void set_DigitalSignature(unsigned char __gc[]);
[JScript]
public function get DigitalSignature() : Byte[];
public function set DigitalSignature(Byte[]);

Property Value

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.

Exceptions

Exception Type Condition
InvalidOperationException The message queue is filtered to ignore the DigitalSignature property.
ArgumentException The DigitalSignature property is a null reference (Nothing in Visual Basic).

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.

Note   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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

Message Class | Message Members | System.Messaging Namespace | ConnectorType | SenderCertificate | HashAlgorithm | UseAuthentication

Show:
© 2015 Microsoft