Package io.quarkus.vault.client.logging
Enum Class LogConfidentialityLevel
- All Implemented Interfaces:
Serializable,Comparable<LogConfidentialityLevel>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionmaskWithTolerance(String info, LogConfidentialityLevel infoToleranceLevel) Mask the argument if the tolerance level is lower or equal to the receiver (which would typically represent the actual configuration). so for instance passwords and auth tokens would have a LOW tolerance, whereas lease ids and usernames would have a MEDIUM tolerance.static LogConfidentialityLevelReturns the enum constant of this class with the specified name.static LogConfidentialityLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LOW
Display all secrets.This may be appropriate for development environments.
-
MEDIUM
Display only usernames and lease ids (ie: passwords and token are masked). -
HIGH
Mask all secrets.
-
-
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
-
maskWithTolerance
Mask the argument if the tolerance level is lower or equal to the receiver (which would typically represent the actual configuration). so for instance passwords and auth tokens would have a LOW tolerance, whereas lease ids and usernames would have a MEDIUM tolerance. As a result usernames would be shown and passwords would be hidden if the system was configured with a MEDIUM level.
-