Class ProducerEndpointBuilderEncryptUsingExtensions
Adds the EncryptUsingAes
method to the
ProducerEndpointBuilder<TEndpoint, TBuilder>.
Inherited Members
Namespace: Silverback.Messaging.Configuration
Assembly: Silverback.Integration.dll
Syntax
public static class ProducerEndpointBuilderEncryptUsingExtensions
Methods
| Improve this doc View sourceEncryptUsingAes<TBuilder>(IProducerEndpointBuilder<TBuilder>, byte[], byte[]?)
Specifies that the AES algorithm has to be used to encrypt the messages.
Declaration
public static TBuilder EncryptUsingAes<TBuilder>(this IProducerEndpointBuilder<TBuilder> endpointBuilder, byte[] key, byte[]? initializationVector = null) where TBuilder : IProducerEndpointBuilder<TBuilder>
Parameters
Type | Name | Description |
---|---|---|
IProducerEndpointBuilder<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. |
EncryptUsingAes<TBuilder>(IProducerEndpointBuilder<TBuilder>, byte[], string, byte[]?)
Specifies that the AES algorithm has to be used to encrypt the messages.
Declaration
public static TBuilder EncryptUsingAes<TBuilder>(this IProducerEndpointBuilder<TBuilder> endpointBuilder, byte[] key, string keyIdentifier, byte[]? initializationVector = null) where TBuilder : IProducerEndpointBuilder<TBuilder>
Parameters
Type | Name | Description |
---|---|---|
IProducerEndpointBuilder<TBuilder> | endpointBuilder | The endpoint builder. |
byte[] | key | The secret key for the symmetric algorithm. |
string | keyIdentifier | The key identifier to be sent in the header (see EncryptionKeyId). When rotating keys, it will be used on the consumer side to determine the correct key to be used to decrypt the message. |
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. |