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

com.credibledoc.iso8583packer.masking.AnyMasker Maven / Gradle / Ivy

There is a newer version: 1.0.51
Show newest version
package com.credibledoc.iso8583packer.masking;

import com.credibledoc.iso8583packer.string.StringUtils;

/**
 * Replace all bytes with '99' and value.toString() with '*'.
 * 
 * @author Kyrylo Semenko
 */
public class AnyMasker implements Masker {
    @Override
    public String maskHex(String hex) {
        return StringUtils.leftPad("", hex.length(), '9');
    }

    @Override
    public String maskValue(Object value) {
        return StringUtils.leftPad("", value.toString().length(), '*');
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy