Enum Class JsonMaskerAlgorithmType

java.lang.Object
java.lang.Enum<JsonMaskerAlgorithmType>
dev.blaauwendraad.masker.json.config.JsonMaskerAlgorithmType
All Implemented Interfaces:
Serializable, Comparable<JsonMaskerAlgorithmType>, Constable

public enum JsonMaskerAlgorithmType extends Enum<JsonMaskerAlgorithmType>
Specifies the masking algorithm used.

The main reason this library contains this enum is for future support of additional algorithms that might focus on different requirements for which a different algorithm provides a better performance.

Default value: KEYS_CONTAIN

  • Enum Constant Details

  • Method Details

    • values

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