TokenizeAllPII tokenizes all eligible PII fields in an identity. Parameters: - identityID string: The ID of the identity. Returns: - error: An error if any field could not be tokenized.
(identityID string)
| 319 | // Returns: |
| 320 | // - error: An error if any field could not be tokenized. |
| 321 | func (l *LedgerForge) TokenizeAllPII(identityID string) error { |
| 322 | for _, field := range tokenization.TokenizableFields { |
| 323 | // Ignore errors for fields that might already be tokenized |
| 324 | _ = l.TokenizeIdentityField(identityID, field) |
| 325 | } |
| 326 | return nil |
| 327 | } |
| 328 | |
| 329 | // GetDetokenizedIdentity returns a copy of the identity with all fields detokenized. |
| 330 | // Note: This does not modify the stored identity. |