Class SilverbackCryptoStreamFactory
The factory used to create the SilverbackCryptoStream implementation according to the EncryptionSettings.
Inheritance
System.Object
SilverbackCryptoStreamFactory
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Silverback.Messaging.Encryption
Assembly: Silverback.Integration.dll
Syntax
public class SilverbackCryptoStreamFactory : ISilverbackCryptoStreamFactory
Methods
| Improve this doc View sourceGetDecryptStream(Stream, EncryptionSettings, String)
Gets a SilverbackCryptoStream compatible with the specified settings.
Declaration
public SilverbackCryptoStream GetDecryptStream(Stream stream, EncryptionSettings settings, string keyIdentifier = null)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | The inner System.IO.Stream to read the encrypted message from. |
EncryptionSettings | settings | The EncryptionSettings specifying the cryptographic algorithm settings. |
System.String | keyIdentifier | The encryption key identifier that was submitted as header. |
Returns
Type | Description |
---|---|
SilverbackCryptoStream | A SilverbackCryptoStream compatible with the specified settings. |
GetEncryptStream(Stream, EncryptionSettings)
Gets a SilverbackCryptoStream compatible with the specified settings.
Declaration
public SilverbackCryptoStream GetEncryptStream(Stream stream, EncryptionSettings settings)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | The inner System.IO.Stream to read the clear-text message from. |
EncryptionSettings | settings | The EncryptionSettings specifying the cryptographic algorithm settings. |
Returns
Type | Description |
---|---|
SilverbackCryptoStream | A SilverbackCryptoStream compatible with the specified settings. |