Protect data (encrypt / tokenize / anonymize)
protectProtect sensitive field values by applying encryption, tokenization, or masking based on role and data class. Returns transformed values alongside originals.
Instructions
Protect one or more field values for a given role. The exact technique (encryption, tokenization, anonymization, masking) is server-configured per (className, propertyName). Returns each field's protected value joined to its original. Protect data as early as possible.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | Role evidence (who is asking), e.g. R_MANAGER. | R_MANAGER |
| fields | Yes | Field values to protect. | |
| evidences | No | Extra evidence key/value pairs beyond Role/Action. | |
| loggingAttributes | No | Optional audit-log attributes for this call. |