\EncryptDataObjectFieldsExtension
Class EncryptDataObjectFieldsExtension
Synopsis
class EncryptDataObjectFieldsExtension
extends DataExtension
{
- // members
- protected static array $db_mapping = ;
- private static $encrypted_data_objects;
- // methods
- public void __call()
- public void onBeforeWrite()
- private bool shouldEncrypt()
- public mixed getDecryptedProperty()
- public array allMethodNames()
- private void updateFieldEncryptionKey()
Hierarchy
Extends
- DataExtension
Tasks
Line | Task |
---|---|
69+ | Clean this up. Trusting on the arraymap is not safe |
84+ | this is not really a readable code. |
84+ | Clean this to make it more readable. |
Members
private
- $encrypted_data_objects
protected
- $db_mapping
Methods
private
- shouldEncrypt() — Should this value be encrypted?
- updateFieldEncryptionKey() — Checks whether the owner DataObject has a provideEncryptionKey() method and if it does, passes the encryption key returned by that method to $field. This makes the encryption (and decryption) to use a custom key rather than the global ENCRYPT_AT_REST_KEY key.