Class PiiEntityMask


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20221001")
    public final class PiiEntityMask
    extends PiiEntityMasking
    Mask PII entities with the given masking character.
    Note: Objects should always be created or deserialized using the PiiEntityMask.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 PiiEntityMask.Builder, which maintain a set of all explicitly set fields called PiiEntityMask.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

      • getMaskingCharacter

        public String getMaskingCharacter()
        Masking character.

        By default, the character is an asterisk (*)

        Returns:
        the value
      • getLeaveCharactersUnmasked

        public Integer getLeaveCharactersUnmasked()
        Number of characters to leave unmasked.

        By default, the whole entity is masked.

        Returns:
        the value
      • getIsUnmaskedFromEnd

        public Boolean getIsUnmaskedFromEnd()
        Unmask from the end.

        By default, the whole entity is masked. This field works in concert with leaveCharactersUnmasked. For example, leaveCharactersUnmasked is 3 and isUnmaskedFromEnd is true, then if the entity is India the masked entity/result is **dia.

        Returns:
        the value
      • toString

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