Class SymmetricDecryptStream
The implementation of SilverbackCryptoStream based on a SymmetricAlgorithm used to decrypt the messages.
Inherited Members
Namespace: Silverback.Messaging.Encryption
Assembly: Silverback.Integration.dll
Syntax
public class SymmetricDecryptStream : SilverbackCryptoStream, IDisposable, IAsyncDisposable
Constructors
SymmetricDecryptStream(Stream, SymmetricDecryptionSettings, string?)
Initializes a new instance of the SymmetricDecryptStream class.
Declaration
public SymmetricDecryptStream(Stream stream, SymmetricDecryptionSettings settings, string? keyIdentifier = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | The inner Stream to read the encrypted message from. |
| SymmetricDecryptionSettings | settings | The SymmetricDecryptionSettings specifying the cryptographic algorithm settings. |
| string | keyIdentifier | The key identifier to retrieve the encryption key. |
Properties
CryptoStream
Gets the underlying CryptoStream.
Declaration
protected override CryptoStream CryptoStream { get; }
Property Value
| Type | Description |
|---|---|
| CryptoStream |
Overrides
Methods
Dispose(bool)
The implementation of SilverbackCryptoStream based on a SymmetricAlgorithm used to decrypt the messages.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |