public class TableEncryptionPolicy extends Object
Modifier and Type | Field and Description |
---|---|
com.microsoft.azure.keyvault.core.IKeyResolver |
keyResolver
The
IKeyResolver used to select the correct key for decrypting existing table entities. |
com.microsoft.azure.keyvault.core.IKey |
keyWrapper
An object of type
IKey that is used to wrap/unwrap the content key during encryption. |
Constructor and Description |
---|
TableEncryptionPolicy(com.microsoft.azure.keyvault.core.IKey key,
com.microsoft.azure.keyvault.core.IKeyResolver keyResolver)
Initializes a new instance of the
TableEncryptionPolicy class with the specified key and resolver. |
Modifier and Type | Method and Description |
---|---|
com.microsoft.azure.keyvault.core.IKey |
getKey()
Gets the
IKey that is used to wrap/unwrap the content key during encryption. |
com.microsoft.azure.keyvault.core.IKeyResolver |
getKeyResolver()
Gets the key resolver used to select the correct key for decrypting existing table entities.
|
void |
setKey(com.microsoft.azure.keyvault.core.IKey key)
Sets the
IKey that is used to wrap/unwrap the content key during encryption. |
void |
setKeyResolver(com.microsoft.azure.keyvault.core.IKeyResolver keyResolver)
Sets the key resolver used to select the correct key for decrypting existing table entities.
|
public com.microsoft.azure.keyvault.core.IKey keyWrapper
IKey
that is used to wrap/unwrap the content key during encryption.public com.microsoft.azure.keyvault.core.IKeyResolver keyResolver
IKeyResolver
used to select the correct key for decrypting existing table entities.public TableEncryptionPolicy(com.microsoft.azure.keyvault.core.IKey key, com.microsoft.azure.keyvault.core.IKeyResolver keyResolver)
TableEncryptionPolicy
class with the specified key and resolver.
If the generated policy is intended 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 keyResolver. 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, match the key id on the key and use it.
key
- An object of type IKey
that is used to wrap/unwrap the content encryption key.keyResolver
- The key resolver used to select the correct key for decrypting existing table entities.public com.microsoft.azure.keyvault.core.IKey getKey()
IKey
that is used to wrap/unwrap the content key during encryption.IKey
object.public com.microsoft.azure.keyvault.core.IKeyResolver getKeyResolver()
SymmetricKey
given a keyId.public void setKey(com.microsoft.azure.keyvault.core.IKey key)
IKey
that is used to wrap/unwrap the content key during encryption.key
- An IKey
object.public void setKeyResolver(com.microsoft.azure.keyvault.core.IKeyResolver keyResolver)
keyResolver
- A resolver that returns an IKey
given a keyId.Copyright © 2019. All rights reserved.