Enum Class CallerMode
- All Implemented Interfaces:
Serializable,Comparable<CallerMode>,Constable
Controls how an authenticated caller's identity is written into an
invocation event, for applications where the authenticated name is
personal data (for example an e-mail address used as the username, which
is personal data under GDPR / KVKK).
Only the authenticated-principal tier of caller identity is affected.
The IP fallback used for unauthenticated callers and the
"unknown" placeholder are never changed by this setting.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUse an application-provided resolver (for example logged-spring'sCallerIdentityResolverbean) to produce the identity, typically an internal user id instead of the login name.Use the application-wide setting (for examplelogged.client-info.callerin logged-spring).Mask the authenticated name when it looks like an e-mail address, keeping only the first character of the local part and the whole domain, for exampleuser:j***@example.com.Write the authenticated name as is, for exampleuser:jane.doe@example.com. -
Method Summary
Modifier and TypeMethodDescriptionstatic CallerModeReturns the enum constant of this class with the specified name.static CallerMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Use the application-wide setting (for examplelogged.client-info.callerin logged-spring). This is the default value ofLogged.caller(), so a method that does not set it inherits the global behavior. -
NAME
Write the authenticated name as is, for exampleuser:jane.doe@example.com. This is the library's historical behavior. -
MASKED
Mask the authenticated name when it looks like an e-mail address, keeping only the first character of the local part and the whole domain, for exampleuser:j***@example.com. Names that are not e-mail addresses (a numeric user id, a plain username) are written unchanged. -
CUSTOM
Use an application-provided resolver (for example logged-spring'sCallerIdentityResolverbean) to produce the identity, typically an internal user id instead of the login name.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-