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
originalSymmetricEncryptionSettings
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
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
Methods
Equals(SymmetricEncryptionSettings?)
public virtual bool Equals(SymmetricEncryptionSettings? other)
Parameters
Returns
Equals(SymmetricEncryptionSettingsBase?)
public override sealed bool Equals(SymmetricEncryptionSettingsBase? other)
Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
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
Returns
operator !=(SymmetricEncryptionSettings?, SymmetricEncryptionSettings?)
public static bool operator !=(SymmetricEncryptionSettings? left, SymmetricEncryptionSettings? right)