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

com.ingenico.connect.gateway.sdk.java.logging.HeaderObfuscator Maven / Gradle / Ivy

Go to download

SDK to communicate with the Ingenico ePayments platform using the Ingenico Connect Server API

There is a newer version: 6.47.0
Show newest version
package com.ingenico.connect.gateway.sdk.java.logging;

import java.util.Map;

final class HeaderObfuscator extends Obfuscator {

	HeaderObfuscator(Map obfuscators) {
		// case insensitive
		super(obfuscators, true);
	}

	static Builder builder() {
		return new Builder();
	}

	static class Builder extends Obfuscator.Builder {

		@Override
		Builder withAll(String name) {
			super.withAll(name);
			return this;
		}

		@Override
		Builder withFixedLength(String name, int fixedLength) {
			super.withFixedLength(name, fixedLength);
			return this;
		}

		@Override
		Builder withKeepStartCount(String key, int count) {
			super.withKeepStartCount(key, count);
			return this;
		}

		@Override
		Builder withKeepEndCount(String name, int count) {
			super.withKeepEndCount(name, count);
			return this;
		}

		@Override
		HeaderObfuscator build() {
			return new HeaderObfuscator(getObfuscators());
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy