Interface IElasticsearchFieldEncryptionPolicy
- Namespace
- Excalibur.Data.ElasticSearch.Security
- Assembly
- Excalibur.Data.ElasticSearch.dll
Defines encryption policy evaluation operations for determining field encryption behavior and data classification.
public interface IElasticsearchFieldEncryptionPolicy
Properties
SupportsIntegrityValidation
Gets a value indicating whether this encryptor supports integrity validation.
bool SupportsIntegrityValidation { get; }
Property Value
- bool
True if the encryptor provides data integrity checking, false otherwise.
SupportsKeyRotation
Gets a value indicating whether this encryptor supports key rotation.
bool SupportsKeyRotation { get; }
Property Value
- bool
True if the encryptor supports automatic key rotation, false otherwise.
Methods
GetFieldClassification(string, object?)
Gets the data classification level for a specific field based on security rules.
ElasticSearchDataClassification GetFieldClassification(string fieldName, object? fieldValue)
Parameters
fieldNamestringThe name of the field to classify.
fieldValueobjectThe value of the field to classify.
Returns
- ElasticSearchDataClassification
The data classification level for the field, or Public if no specific classification applies.
ShouldEncryptField(string, object?)
Determines whether a specific field should be encrypted based on security rules and data classification.
bool ShouldEncryptField(string fieldName, object? fieldValue)
Parameters
fieldNamestringThe name of the field to evaluate.
fieldValueobjectThe value of the field to evaluate.
Returns
- bool
True if the field should be encrypted according to security policies, false otherwise.