Table of Contents

SignedMessageOptions Class

Definition

Configuration options that is related to wrapping an IRequest implementation inside a cryptographically signed message.

public class SignedMessageOptions : IValidatableParameterObject, IParameterObject
Inheritance
SignedMessageOptions
Implements

Examples

This example shows how to configure the secret and algorithm used when producing verifiable signed messages.

using Savvyio.Messaging.Cryptography;

namespace ExampleApp;

public sealed class SignedMessageOptionsExample
{
    public SignedMessageOptions Configure()
    {
        var options = new SignedMessageOptions { SignatureSecret = new byte[] { 1, 2, 3 } };
        options.ValidateOptions();
        return options;
    }
}

Constructors

Name Description
SignedMessageOptions()

Initializes a new instance of the SignedMessageOptions class.

Properties

Name Description
SignatureAlgorithm

Gets or sets the cryptographical algorithm used when signing the serialized ISignedMessage<T>.

SignatureSecret

Gets or sets the secret key used when signing the serialized ISignedMessage<T>.

Methods

Name Description
ValidateOptions()

Determines whether the public read-write properties of this instance are in a valid state.

See Also