Package io.debezium.relational.mapping
Enum MaskStrings.HashingByteArrayStrategy
- java.lang.Object
-
- java.lang.Enum<MaskStrings.HashingByteArrayStrategy>
-
- io.debezium.relational.mapping.MaskStrings.HashingByteArrayStrategy
-
- All Implemented Interfaces:
Serializable
,Comparable<MaskStrings.HashingByteArrayStrategy>
- Enclosing class:
- MaskStrings
public static enum MaskStrings.HashingByteArrayStrategy extends Enum<MaskStrings.HashingByteArrayStrategy>
V1 default and previous version. Because ObjectOutputStream is used, some characters are added before the actual value. V2 should be used to fidelity for the value being hashed the same way in different places. The byte array also has only the actual value.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
HashingByteArrayStrategy()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract byte[]
toByteArray(Serializable value)
static MaskStrings.HashingByteArrayStrategy
valueOf(String name)
Returns the enum constant of this type with the specified name.static MaskStrings.HashingByteArrayStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
V1
public static final MaskStrings.HashingByteArrayStrategy V1
-
V2
public static final MaskStrings.HashingByteArrayStrategy V2
-
-
Method Detail
-
values
public static MaskStrings.HashingByteArrayStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MaskStrings.HashingByteArrayStrategy c : MaskStrings.HashingByteArrayStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MaskStrings.HashingByteArrayStrategy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
toByteArray
abstract byte[] toByteArray(Serializable value) throws IOException
- Throws:
IOException
-
-