Table of Contents

Class SymmetricDecryptStream

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

The implementation of SilverbackCryptoStream based on a SymmetricAlgorithm used to decrypt the messages.

public class SymmetricDecryptStream : SilverbackCryptoStream, IDisposable, IAsyncDisposable
Inheritance
SymmetricDecryptStream
Implements
Inherited Members

Constructors

SymmetricDecryptStream(Stream, SymmetricDecryptionSettings, string?)

Initializes a new instance of the SymmetricDecryptStream class.

public SymmetricDecryptStream(Stream stream, SymmetricDecryptionSettings settings, string? keyIdentifier = null)

Parameters

stream Stream

The inner Stream to read the encrypted message from.

settings SymmetricDecryptionSettings

The SymmetricDecryptionSettings specifying the cryptographic algorithm settings.

keyIdentifier string

The key identifier to retrieve the encryption key.

Properties

CryptoStream

Gets the underlying CryptoStream.

protected override CryptoStream CryptoStream { get; }

Property Value

CryptoStream

Methods

Dispose(bool)

protected override void Dispose(bool disposing)

Parameters

disposing bool