QueueEncryptionPolicy(IKey, IKeyResolver) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the QueueEncryptionPolicy class with the specified key and resolver.
public QueueEncryptionPolicy (Microsoft.Azure.KeyVault.Core.IKey key, Microsoft.Azure.KeyVault.Core.IKeyResolver keyResolver);
new Microsoft.Azure.Storage.Queue.QueueEncryptionPolicy : Microsoft.Azure.KeyVault.Core.IKey * Microsoft.Azure.KeyVault.Core.IKeyResolver -> Microsoft.Azure.Storage.Queue.QueueEncryptionPolicy
Public Sub New (key As IKey, keyResolver As IKeyResolver)
Parameters
- keyResolver
- IKeyResolver
The key resolver used to select the correct key for decrypting existing queue messages.
Remarks
If the generated policy is to be used for encryption, users are expected to provide a key at the minimum. The absence of key will cause an exception to be thrown during encryption.
If the generated policy is intended to be used for decryption, users can provide a key resolver. The client library will:
1. Invoke the key resolver, if specified, to get the key.
2. If resolver is not specified but a key is specified, the client library will match the key ID against the key and use the key.
Applies to
Azure SDK for .NET