Show / Hide Table of Contents

    Class SilverbackCryptoStreamFactory

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

    Inheritance
    object
    SilverbackCryptoStreamFactory
    Implements
    ISilverbackCryptoStreamFactory
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Silverback.Messaging.Encryption
    Assembly: Silverback.Integration.dll
    Syntax
    public class SilverbackCryptoStreamFactory : ISilverbackCryptoStreamFactory

    Methods

    | Improve this doc View source

    GetDecryptStream(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
    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
    public 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.

    Implements

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