SignedMessage Constructor
Definition
- Namespace
- Savvyio.Messaging.Cryptography
- Assemblies
- Savvyio.Messaging.dll
SignedMessage(IMessage<T>, string)
Initializes a new instance of the SignedMessage<T> class.
public SignedMessage(IMessage<T> message, string signature)
Parameters
messageIMessage<T>The message to cryptographically sign.
signaturestringThe cryptographic signature of the
message.
Exceptions
- ArgumentNullException
messagecannot be null - or -signaturecannot be null.- ArgumentException
signaturecannot be empty or consist only of white-space characters.