context property
A context may be used for higher security and maintaining referential integrity such that the same identifier in two different contexts will be given a distinct surrogate.
The context is appended to plaintext value being encrypted. On decryption the provided context is validated against the value used during encryption. If a context was provided during encryption, same context must be provided during decryption as well. If the context is not set, plaintext would be used as is for encryption. If the context is set but:
- there is no record present when transforming a given value or 2. the
field is not present when transforming a given value, plaintext would be
used as is for encryption. Note that case (1) is expected when an
InfoTypeTransformation
is applied to both structured and unstructuredContentItem
s.
Implementation
GooglePrivacyDlpV2FieldId? context;