Enum Class PropertySensitivity

java.lang.Object
java.lang.Enum<PropertySensitivity>
com.persequor.extension.configuration.PropertySensitivity
All Implemented Interfaces:
Serializable, Comparable<PropertySensitivity>, Constable

public enum PropertySensitivity extends Enum<PropertySensitivity>
  • Enum Constant Details

    • SENSITIVE

      public static final PropertySensitivity 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

      public static final PropertySensitivity 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

      public static final PropertySensitivity 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 as NOT_SENSITIVE.

  • Method Details

    • values

      public static PropertySensitivity[] 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

      public static PropertySensitivity valueOf(String name)
      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 name
      NullPointerException - if the argument is null