All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.global.api.utils.masking.ElementToMask Maven / Gradle / Ivy

There is a newer version: 14.2.3
Show newest version
package com.global.api.utils.masking;

import lombok.EqualsAndHashCode;
import lombok.Getter;

@Getter
@EqualsAndHashCode(of = {"key", "value"})
public class ElementToMask {

    private final String key;
    private final String value;
    private final int unmaskedLastChars;
    private final int unmaskedFirstChars;
    private final char maskSymbol;

    public ElementToMask(String key, String value) {
        this(key, value, 0, 0, 'X');
    }

    public ElementToMask(String key, String value, int unmaskedLastChars, int unmaskedFirstChars) {
        this(key, value, unmaskedLastChars, unmaskedFirstChars, 'X');
    }

    public ElementToMask(String key, String value, int unmaskedLastChars, int unmaskedFirstChars, char maskSymbol) {
        this.key = key;
        this.value = value;
        this.unmaskedFirstChars = unmaskedFirstChars;
        this.unmaskedLastChars = unmaskedLastChars;
        this.maskSymbol = maskSymbol;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy