LeKoala\Encrypt\Test\Test_EncryptedModel
A test model for our encryption
Synopsis
class Test_EncryptedModel
extends DataObject
implements
TestOnly
{
- // members
- private static string $table_name = 'EncryptedModel';
- private static array $db = ;
- private static array $has_one = ;
- private static array $indexes = ;
- // Inherited methods from HasEncryptedFields
- public static $this getByBlindIndex()
- public static array getAllByBlindIndex()
- public bool needsToRotateEncryption()
- public bool rotateEncryption()
- public EncryptedRow getEncryptedRow()
- public mixed getEncryptedField()
- public $this setEncryptedField()
- public boolean hasEncryptedField()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Uses
Implements
- SilverStripe\Dev\TestOnly
Members
private
- $db
- $has_one
- $indexes
- $table_name
Methods
public
Inherited from LeKoala\Encrypt\HasEncryptedFields
public
- getAllByBlindIndex() — This value will return a list of records
- getByBlindIndex() — This value will return exactly one record, taking care of false positives
- getEncryptedField() — Extend getField to support retrieving encrypted value transparently
- getEncryptedRow()
- hasEncryptedField()
- needsToRotateEncryption() — Check if the record needs to be reencrypted with a new key or algo
- rotateEncryption() — Rotate encryption with current engine without using orm
- setEncryptedField() — Extend setField to support setting encrypted value transparently