Table of Contents

Class SignedMessage<T>

Namespace
Savvyio.Messaging.Cryptography
Assembly
Savvyio.Messaging.dll

Provides a default implementation of the ISignedMessage<T> interface.

public class SignedMessage<T> : Acknowledgeable, IEquatable<Acknowledgeable>, ISignedMessage<T>, IMessage<T>, IAcknowledgeable, IEquatable<SignedMessage<T>> where T : IRequest

Type Parameters

T

The type of the payload constraint to the IRequest interface.

Inheritance
Object
SignedMessage<T>
Implements
IEquatable<Acknowledgeable>
IEquatable<SignedMessage<T>>
Inherited Members
Extension Methods

Constructors

SignedMessage(IMessage<T>, String)

Initializes a new instance of the SignedMessage<T> class.

public SignedMessage(IMessage<T> message, string signature)

Parameters

message IMessage<T>

The message to cryptographically sign.

signature String

The cryptographic signature of the message.

Exceptions

System.ArgumentNullException

message cannot be null - or - signature cannot be null.

ArgumentException

signature cannot be empty or consist only of white-space characters.

Properties

Data

public T Data { get; }

Property Value

T

Id

public string Id { get; }

Property Value

String

Signature

Gets the cryptographic signature of the message.

public string Signature { get; }

Property Value

String

The cryptographic signature of the message.

Source

public string Source { get; }

Property Value

String

Time

public DateTime? Time { get; }

Property Value

Nullable<DateTime>

Type

public string Type { get; }

Property Value

String

See Also