Table of Contents

Class SymmetricEncryptionSettings

Namespace
Silverback.Messaging.Encryption
Assembly
Silverback.Integration.dll

The encryption settings used to encrypt the messages.

public record SymmetricEncryptionSettings : SymmetricEncryptionSettingsBase, IEquatable<SymmetricEncryptionSettingsBase>, IEncryptionSettings, IValidatableSettings, IEquatable<SymmetricEncryptionSettings>
Inheritance
SymmetricEncryptionSettings
Implements
Inherited Members

Constructors

SymmetricEncryptionSettings()

public SymmetricEncryptionSettings()

SymmetricEncryptionSettings(SymmetricEncryptionSettings)

protected SymmetricEncryptionSettings(SymmetricEncryptionSettings original)

Parameters

original SymmetricEncryptionSettings

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

KeyIdentifier

Gets the key identifier to be sent in the header (see EncryptionKeyId). It will be used on the consumer side to determine the correct key to be used to decrypt the message.

public string? KeyIdentifier { get; init; }

Property Value

string

Methods

Equals(SymmetricEncryptionSettings?)

public virtual bool Equals(SymmetricEncryptionSettings? other)

Parameters

other SymmetricEncryptionSettings

Returns

bool

Equals(SymmetricEncryptionSettingsBase?)

public override sealed bool Equals(SymmetricEncryptionSettingsBase? other)

Parameters

other SymmetricEncryptionSettingsBase

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Validate()

Throws a SilverbackConfigurationException if the configuration is not valid.

public override void Validate()

Operators

operator ==(SymmetricEncryptionSettings?, SymmetricEncryptionSettings?)

public static bool operator ==(SymmetricEncryptionSettings? left, SymmetricEncryptionSettings? right)

Parameters

left SymmetricEncryptionSettings
right SymmetricEncryptionSettings

Returns

bool

operator !=(SymmetricEncryptionSettings?, SymmetricEncryptionSettings?)

public static bool operator !=(SymmetricEncryptionSettings? left, SymmetricEncryptionSettings? right)

Parameters

left SymmetricEncryptionSettings
right SymmetricEncryptionSettings

Returns

bool