Class DeterministicEncryptionFormatEntry
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.datasafe.model.FormatEntry
-
- com.oracle.bmc.datasafe.model.DeterministicEncryptionFormatEntry
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20181201") public final class DeterministicEncryptionFormatEntry extends FormatEntry
The Deterministic Encryption masking format encrypts column data using a cryptographic key and Advanced Encryption Standard (AES 128).It can be used to encrypt character and number columns. It can encrypt ASCII data without any input (except seed value), but it needs a regular expression to encrypt non-ASCII data.
Deterministic Encryption is a format-preserving, deterministic and reversible masking format, which requires a seed value while submitting a masking work request. Passing the same seed value when masking multiple times or masking different databases ensures that the data is masked deterministically. To learn more, check Deterministic Encryption in the Data Safe documentation.
Note: Objects should always be created or deserialized using theDeterministicEncryptionFormatEntry.Builder
. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theDeterministicEncryptionFormatEntry.Builder
, which maintain a set of all explicitly set fields calledDeterministicEncryptionFormatEntry.Builder.__explicitlySet__
. ThehashCode()
andequals(Object)
methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DeterministicEncryptionFormatEntry.Builder
-
Constructor Summary
Constructors Constructor Description DeterministicEncryptionFormatEntry(String description, String regularExpression)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeterministicEncryptionFormatEntry.Builder
builder()
Create a new builder.boolean
equals(Object o)
String
getRegularExpression()
The regular expression to be used for masking.int
hashCode()
DeterministicEncryptionFormatEntry.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.-
Methods inherited from class com.oracle.bmc.datasafe.model.FormatEntry
getDescription
-
-
-
-
Constructor Detail
-
DeterministicEncryptionFormatEntry
@Deprecated public DeterministicEncryptionFormatEntry(String description, String regularExpression)
Deprecated.
-
-
Method Detail
-
builder
public static DeterministicEncryptionFormatEntry.Builder builder()
Create a new builder.
-
toBuilder
public DeterministicEncryptionFormatEntry.Builder toBuilder()
-
getRegularExpression
public String getRegularExpression()
The regular expression to be used for masking.For data with characters in the ASCII character set, providing a regular expression is optional. However, it is required if the data contains multi-byte characters. If not provided, an error is returned when a multi-byte character is found.
In the case of ASCII characters, if a regular expression is not provided, Deterministic Encryption can encrypt variable-length column values while preserving their original format.
If a regular expression is provided, the column values in all the rows must match the regular expression. Deterministic Encryption supports a subset of the regular expression language. It supports encryption of fixed-length strings, and does not support * or + syntax of regular expressions. The encrypted values also match the regular expression, which helps to ensure that the original format is preserved. If an original value does not match the regular expression, Deterministic Encryption might not produce a one-to-one mapping. All non-confirming values are mapped to a single encrypted value, thereby producing a many-to-one mapping.
- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classFormatEntry
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Overrides:
toString
in classFormatEntry
- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classFormatEntry
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classFormatEntry
-
-