Class ConsumerEndpointBuilderDecryptUsingExtensions
Adds the DecryptUsingAes
method to the
ConsumerEndpointBuilder<TEndpoint, TBuilder>.
Inherited Members
Namespace: Silverback.Messaging.Configuration
Assembly: Silverback.Integration.dll
Syntax
public static class ConsumerEndpointBuilderDecryptUsingExtensions
Methods
| Improve this doc View sourceDecryptUsingAes<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 |
Returns
Type | Description |
---|---|
TBuilder | The endpoint builder so that additional calls can be chained. |
Type Parameters
Name | Description |
---|---|
TBuilder | The actual builder type. |
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 |
Returns
Type | Description |
---|---|
TBuilder | The endpoint builder so that additional calls can be chained. |
Type Parameters
Name | Description |
---|---|
TBuilder | The actual builder type. |