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
Policy type.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ValidationPolicyConfig.TypefromString(String symbol) Returns type enum from string representation.static ValidationPolicyConfig.TypeReturns the enum constant of this class with the specified name.static ValidationPolicyConfig.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WHITELIST
A whitelist requires that at least one policy rule matches for the action to be accepted. -
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
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
-
fromString
Returns type enum from string representation.- Parameters:
symbol- type name in either lower or upper case- Returns:
- the type or null if not recognised
-