Enum Class SecuritySeverity
- All Implemented Interfaces:
Serializable, Comparable<SecuritySeverity>, Constable
The severity of a security event of a client session or an application session (CC-SIGNIN-RECORDS-AND-SECURITY-LOG, order 556). Every event reaches the server log through
ILog at the level of its severity; CRITICAL has no level of its own there and is logged SEVERE with its name in front of the text, so that a log filter on "CRITICAL" finds it.- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSomething an administrator must look at now: the break-glass file used, a session taken over.Something that happened as it should and is worth a record: a sign-in.Something that changes the security of an account or the server: a policy change, a recovery code used.Something refused or failed that may be an attempt: a sign-in refused, a second factor that failed.Method Summary
Modifier and TypeMethodDescriptionintGets theILoglevel the events of this severity are logged at.booleanisAtLeast(SecuritySeverity other) Tells whether this severity is at least another one:CRITICALis aboveSEVERE, aboveWARNING, aboveINFO.static SecuritySeverityof(int ordinal) Gets a severity from its ordinal as stored, tolerant of a value out of range.static SecuritySeverityReturns the enum constant of this class with the specified name.static SecuritySeverity[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
INFO
Something that happened as it should and is worth a record: a sign-in.WARNING
Something refused or failed that may be an attempt: a sign-in refused, a second factor that failed.SEVERE
Something that changes the security of an account or the server: a policy change, a recovery code used.CRITICAL
Something an administrator must look at now: the break-glass file used, a session taken over.
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
getLogLevel
public int getLogLevel()Gets theILoglevel the events of this severity are logged at.- Returns:
ILog.INFO,ILog.WARNINGorILog.SEVERE.
isAtLeast
Tells whether this severity is at least another one:CRITICALis aboveSEVERE, aboveWARNING, aboveINFO.- Parameters:
other- The other severity.- Returns:
- true when this one is the same or worse.
of
Gets a severity from its ordinal as stored, tolerant of a value out of range.