\EncryptedText
Synopsis
class EncryptedText
extends Text
{
- // members
- public boolean $is_encrypted = true;
- protected AtRestCryptoService $service;
- // methods
- public void __construct()
- public void setValue()
- public void getDecryptedValue()
- public void getValue()
- public void requireField()
- public void prepValueForDB()
- // Inherited methods from EncryptedFieldTrait
- public Key|null getEncryptionKey()
- public void setEncryptionKey()
Hierarchy
Tasks
Line | Task |
---|---|
48 | Change the autogenerated stub |
Members
Methods
public
Inherited from EncryptedFieldTrait
public
- getEncryptionKey() — Returns a custom key if one is explicitly set for this field. If a key is not set using setEncryptionKey(), returns null, which will trigger the AtRestCryptoService to use the default global key set in the ENCRYPT_AT_REST_KEY constant.
- setEncryptionKey() — Sets an encryption key that will override the default key defined in the ENCRYPT_AT_REST_KEY constant.