TableEncryptionPolicy Class
- java.
lang. Object - com.
microsoft. azure. storage. table. TableEncryptionPolicy
- com.
public class TableEncryptionPolicy
Represents a table encryption policy that is used to perform envelope encryption/decryption of Azure table entities.
Modifier and Type | Field and Description |
---|---|
IKey |
key The IKeyResolver used to select the correct key for decrypting existing table entities. |
IKey |
key An object of type IKey that is used to wrap/unwrap the content key during encryption. |
Constructor | Description |
---|---|
Table |
Initializes a new instance of the 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. |
Modifier and Type | Method and Description |
---|---|
IKey |
get Gets the IKey that is used to wrap/unwrap the content key during encryption. |
IKey |
get Gets the key resolver used to select the correct key for decrypting existing table entities. |
void |
set Sets the IKey that is used to wrap/unwrap the content key during encryption. |
void |
set Sets the key resolver used to select the correct key for decrypting existing table entities. |
keyResolver
public IKeyResolver keyResolver
The IKeyResolver used to select the correct key for decrypting existing table entities.
keyWrapper
public IKey keyWrapper
An object of type IKey that is used to wrap/unwrap the content key during encryption.
TableEncryptionPolicy
public TableEncryptionPolicy(IKey key, IKeyResolver keyResolver)
Initializes a new instance of the 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.
Parameters:
getKey
public IKey getKey()
Gets the IKey that is used to wrap/unwrap the content key during encryption.
Returns:
getKeyResolver
public IKeyResolver getKeyResolver()
Gets the key resolver used to select the correct key for decrypting existing table entities.
Returns:
setKey
public void setKey(IKey key)
Sets the IKey that is used to wrap/unwrap the content key during encryption.
Parameters:
setKeyResolver
public void setKeyResolver(IKeyResolver keyResolver)
Sets the key resolver used to select the correct key for decrypting existing table entities.
Parameters: