Table of Contents

Class SignedMessageOptions

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

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

public class SignedMessageOptions : IValidatableParameterObject, IParameterObject
Inheritance
Object
SignedMessageOptions
Implements

Constructors

SignedMessageOptions()

Initializes a new instance of the SignedMessageOptions class.

public SignedMessageOptions()

Remarks

The following table shows the initial property values for an instance of MessageOptions.

PropertyInitial Value
SignatureAlgorithmHmacSha256

Properties

SignatureAlgorithm

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

public KeyedCryptoAlgorithm SignatureAlgorithm { get; set; }

Property Value

KeyedCryptoAlgorithm

The cryptographical algorithm used when signing the serialized ISignedMessage<T>.

SignatureSecret

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

public byte[] SignatureSecret { get; set; }

Property Value

Byte[]

The secret key used when signing the serialized ISignedMessage<T>.

Methods

ValidateOptions()

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

public void ValidateOptions()

Remarks

This method is expected to throw exceptions when one or more conditions fails to be in a valid state.

Exceptions

System.InvalidOperationException

SignatureSecret cannot be null - or - SignatureSecret cannot have a length of zero.

See Also