com.credibledoc.iso8583packer.masking.Masker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iso-8583-packer Show documentation
Show all versions of iso-8583-packer Show documentation
Helps to define message structure in ISO 8583 and other formats.
package com.credibledoc.iso8583packer.masking;
import com.credibledoc.iso8583packer.message.MsgValue;
/**
* Uses for masking of private sensitive data for logging purposes.
*
* See the
* masker.md
* documentation.
*
* @author Kyrylo Semenko
*/
public interface Masker {
/**
* Hides private data for logging.
* @param hex the {@link MsgValue#getBodyBytes()} field.
* @return For example 9999999999
*/
String maskHex(String hex);
/**
* Hides private data for logging.
* @param value the {@link MsgValue#getBodyValue()} field.
* @return For example 123******
*/
String maskValue(Object value);
}