Show / Hide Table of Contents

    Interface ISilverbackCryptoStreamFactory

    The factory used to create the SilverbackCryptoStream implementation according to the EncryptionSettings.

    Namespace: Silverback.Messaging.Encryption
    Assembly: Silverback.Integration.dll
    Syntax
    public interface ISilverbackCryptoStreamFactory

    Methods

    | Improve this doc View source

    GetDecryptStream(Stream, EncryptionSettings, string?)

    Gets a SilverbackCryptoStream compatible with the specified settings.

    Declaration
    SilverbackCryptoStream GetDecryptStream(Stream stream, EncryptionSettings settings, string? keyIdentifier = null)
    Parameters
    Type Name Description
    Stream stream

    The inner Stream to read the encrypted message from.

    EncryptionSettings settings

    The EncryptionSettings specifying the cryptographic algorithm settings.

    string keyIdentifier

    The encryption key identifier that was submitted as header.

    Returns
    Type Description
    SilverbackCryptoStream

    A SilverbackCryptoStream compatible with the specified settings.

    | Improve this doc View source

    GetEncryptStream(Stream, EncryptionSettings)

    Gets a SilverbackCryptoStream compatible with the specified settings.

    Declaration
    SilverbackCryptoStream GetEncryptStream(Stream stream, EncryptionSettings settings)
    Parameters
    Type Name Description
    Stream stream

    The inner 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.

    • Improve this doc
    • View source
    GitHub E-Mail
    ↑ Back to top © 2020 Sergio Aquilini