Enum Class ValidationPolicyConfig.Type

java.lang.Object
java.lang.Enum<ValidationPolicyConfig.Type>
com.pushtechnology.diffusion.api.config.ValidationPolicyConfig.Type
All Implemented Interfaces:
Serializable, Comparable<ValidationPolicyConfig.Type>, java.lang.constant.Constable
Enclosing interface:
ValidationPolicyConfig

public static enum ValidationPolicyConfig.Type extends Enum<ValidationPolicyConfig.Type>
Policy type.
  • Enum Constant Details

    • WHITELIST

      public static final ValidationPolicyConfig.Type WHITELIST
      A whitelist requires that at least one policy rule matches for the action to be accepted.
    • BLACKLIST

      public static final ValidationPolicyConfig.Type BLACKLIST
      A blacklist indicates that if any of the policy rules in this policy match the connection requesting the action, the action is to be rejected.
  • Method Details

    • values

      public static ValidationPolicyConfig.Type[] 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 ValidationPolicyConfig.Type 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
    • fromString

      public static ValidationPolicyConfig.Type fromString(String symbol)
      Returns type enum from string representation.
      Parameters:
      symbol - type name in either lower or upper case
      Returns:
      the type or null if not recognised