Class ConsumerEndpointBuilderDecryptUsingExtensions
Adds the DecryptUsingAes
method to the
ConsumerEndpointBuilder<TEndpoint, TBuilder>.
Inheritance
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. |
System.Byte[] | key | The secret key for the symmetric algorithm. |
System.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. |
System.Func<System.String, System.Byte[]> | decryptionKeyCallback | The function to be used to retrieve the encryption key according to the encryption key identifier passed in the header (see EncryptionKeyId). |
System.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. |