Show / Hide Table of Contents

    Class ConsumerEndpointBuilderDecryptUsingExtensions

    Adds the DecryptUsingAes method to the ConsumerEndpointBuilder<TEndpoint, TBuilder>.

    Inheritance
    object
    ConsumerEndpointBuilderDecryptUsingExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Silverback.Messaging.Configuration
    Assembly: Silverback.Integration.dll
    Syntax
    public static class ConsumerEndpointBuilderDecryptUsingExtensions

    Methods

    | Improve this doc View source

    DecryptUsingAes<TBuilder>(IConsumerEndpointBuilder<TBuilder>, byte[], byte[]?)

    Specifies that the AES algorithm has to be used to decrypt the messages.

    Declaration
    public static TBuilder DecryptUsingAes<TBuilder>(this IConsumerEndpointBuilder<TBuilder> endpointBuilder, byte[] key, byte[]? initializationVector = null) where TBuilder : IConsumerEndpointBuilder<TBuilder>
    Parameters
    Type Name Description
    IConsumerEndpointBuilder<TBuilder> endpointBuilder

    The endpoint builder.

    byte[] key

    The secret key for the symmetric algorithm.

    byte[] initializationVector

    The optional initialization vector (IV) for the symmetric algorithm. If null it is expected that the IV is prepended to the actual encrypted message.

    Returns
    Type Description
    TBuilder

    The endpoint builder so that additional calls can be chained.

    Type Parameters
    Name Description
    TBuilder

    The actual builder type.

    | Improve this doc View source

    DecryptUsingAes<TBuilder>(IConsumerEndpointBuilder<TBuilder>, Func<string?, byte[]>, byte[]?)

    Specifies that the AES algorithm has to be used to decrypt the messages.

    Declaration
    public static TBuilder DecryptUsingAes<TBuilder>(this IConsumerEndpointBuilder<TBuilder> endpointBuilder, Func<string?, byte[]> decryptionKeyCallback, byte[]? initializationVector = null) where TBuilder : IConsumerEndpointBuilder<TBuilder>
    Parameters
    Type Name Description
    IConsumerEndpointBuilder<TBuilder> endpointBuilder

    The endpoint builder.

    Func<string, byte[]> decryptionKeyCallback

    The function to be used to retrieve the encryption key according to the encryption key identifier passed in the header (see EncryptionKeyId).

    byte[] initializationVector

    The optional initialization vector (IV) for the symmetric algorithm. If null it is expected that the IV is prepended to the actual encrypted message.

    Returns
    Type Description
    TBuilder

    The endpoint builder so that additional calls can be chained.

    Type Parameters
    Name Description
    TBuilder

    The actual builder type.

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