Package com.tnsai.quality.redaction
Enum Class Severity
- All Implemented Interfaces:
Serializable,Comparable<Severity>,Constable
Sensitivity tier of a
RedactionFinding (issue #80).
Drives downstream policy: CRITICAL matches optionally
trigger an OnNotification hook for real-time alerting (e.g.
leaked SSN / credit card); LOW matches typically just go to
the audit log.
- Since:
- 0.5.0 (issue #80)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionStrong PII or compliance-relevant secret — credit card, SSN, national ID, SSH private key.Credential / token (API key, JWT, AWS access key).Cosmetic / low-risk (IP addresses, generic identifiers).Identifying but not sensitive (email, phone, IBAN). -
Method Summary
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
LOW
Cosmetic / low-risk (IP addresses, generic identifiers). -
MEDIUM
Identifying but not sensitive (email, phone, IBAN). -
HIGH
Credential / token (API key, JWT, AWS access key). -
CRITICAL
Strong PII or compliance-relevant secret — credit card, SSN, national ID, SSH private key. Default policy is to alert + redact.
-
-
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
-