maskPatterns property
Header and body field names whose values should be masked with ***.
Three pattern forms are supported:
- Substring (default):
'token'masks any key containing "token" (e.g.accessToken,tokenExpiry,refresh_token). - Exact match:
'=accessToken'masks only the keyaccessToken, nottokenExpiryorrefreshToken. - Regex:
'~^(access|refresh)_token$'matches keys that satisfy the regular expression (case-insensitive).
All matching is case-insensitive.
Implementation
final List<String> maskPatterns;