Class MaskingFormat


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20181201")
    public final class MaskingFormat
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    A masking format defines the logic to mask data in a database column.

    The condition attribute defines the condition that must be true for applying the masking format. It enables you to do conditional masking so that you can mask the column data values differently using different masking formats and the associated conditions. A masking format can have one or more format entries. A format entry can be a basic masking format such as Random Number, or it can be a library masking format.The combined output of all the format entries is used for masking. It provides the flexibility to define a masking format that can generate different parts of a data value separately and then combine them to get the final data value for masking.
    Note: Objects should always be created or deserialized using the MaskingFormat.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 the MaskingFormat.Builder, which maintain a set of all explicitly set fields called MaskingFormat.Builder.__explicitlySet__. The hashCode() and equals(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).

    • Method Detail

      • getCondition

        public String getCondition()
        A condition that must be true for applying the masking format.

        It can be any valid SQL construct that can be used in a SQL predicate. It enables you to do conditional masking so that you can mask the column data values differently using different masking formats and the associated conditions.

        Returns:
        the value
      • getDescription

        public String getDescription()
        The description of the masking format.
        Returns:
        the value
      • getFormatEntries

        public List<FormatEntry> getFormatEntries()
        An array of format entries.

        The combined output of all the format entries is used for masking the column data values.

        Returns:
        the value
      • toString

        public String toString()
        Overrides:
        toString in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel