Enum Class PropertySensitivity
- All Implemented Interfaces:
Serializable
,Comparable<PropertySensitivity>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe property will use its inherited sensitivity.The property is not sensitive and can be handled as any other property.The property is sensitive and should be handled with care. -
Method Summary
Modifier and TypeMethodDescriptionstatic PropertySensitivity
Returns the enum constant of this class with the specified name.static PropertySensitivity[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SENSITIVE
The property is sensitive and should be handled with care.For systems handling Saga properties this means that the property should be encrypted and only be accessible to users with the appropriate permissions when at rest.
-
NOT_SENSITIVE
The property is not sensitive and can be handled as any other property.This is primarily used to override an inherited sensitivity, but can also be used to explicitly mark a property as not sensitive.
-
DEFAULT
The property will use its inherited sensitivity.If the property does not have an inherited sensitivity or its inherited sensitivity is also
DEFAULT
, then the property will be treated asNOT_SENSITIVE
.
-
-
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
-