Source:
<code>public String getLogString() { StringBuffer sb = new StringBuffer(); appendPair(sb, "merchantID", merchantID); appendPair(sb, "keysDirectory", keysDirectory); appendPair(sb, "keyAlias", keyAlias); <START> appendPair(sb, "keyPassword", new String(kp)); <END> appendPair(sb, "sendToProduction", sendToProduction); appendPair(sb, "sendToAkamai", sendToAkamai); appendPair(sb, "targetAPIVersion", targetAPIVersion); appendPair(sb, "keyFilename", keyFilename); appendPair(sb, "serverURL", serverURL); appendPair(sb, "namespaceURI", namespaceURI); appendPair(sb, "enableLog", enableLog); appendPair(sb, "logDirectory", logDirectory); appendPair(sb, "logFilename", logFilename); appendPair(sb, "logMaximumSize", logMaximumSize); appendPair(sb, "customHttpClass", customHttpClass); appendPair(sb, "customHttpClassEnabled", customHttpClassEnabled); appendPair(sb, "useHttpClient", useHttpClient); appendPair(sb, "enableJdkCert", enableJdkCert); appendPair(sb, "enableCacert", enableCacert); if(useHttpClient){ appendPair(sb, "allowRetry", allowRetry); appendPair(sb, "RetryCount", numberOfRetries); appendPair(sb, "RetryInterval", retryInterval); } appendPair(sb, "timeout", timeout); if (proxyHost != null) { appendPair(sb, "proxyHost", proxyHost); appendPair(sb, "proxyPort", proxyPort); if (proxyUser != null) { appendPair(sb, "proxyUser", proxyUser); appendPair(sb, "proxyPassword", pp != null ? "(masked)" : null); } } appendPair(sb, "useSignAndEncrypted", useSignAndEncrypted); appendPair(sb, "certificateCacheEnabled", certificateCacheEnabled); return (sb.toString()); }</code><technical_language>masked here, similar proxy password</technical_language>

Target:
public String getLogString() { StringBuffer sb = new StringBuffer(); appendPair(sb, "merchantID", merchantID); appendPair(sb, "keysDirectory", keysDirectory); appendPair(sb, "keyAlias", keyAlias); appendPair(sb, "keyPassword", new String(kp) != null ? "(masked)" : null); appendPair(sb, "sendToProduction", sendToProduction); appendPair(sb, "sendToAkamai", sendToAkamai); appendPair(sb, "targetAPIVersion", targetAPIVersion); appendPair(sb, "keyFilename", keyFilename); appendPair(sb, "serverURL", serverURL); appendPair(sb, "namespaceURI", namespaceURI); appendPair(sb, "enableLog", enableLog); appendPair(sb, "logDirectory", logDirectory); appendPair(sb, "logFilename", logFilename); appendPair(sb, "logMaximumSize", logMaximumSize); appendPair(sb, "customHttpClass", customHttpClass); appendPair(sb, "customHttpClassEnabled", customHttpClassEnabled); appendPair(sb, "useHttpClient", useHttpClient); appendPair(sb, "enableJdkCert", enableJdkCert); appendPair(sb, "enableCacert", enableCacert); if(useHttpClient){ appendPair(sb, "allowRetry", allowRetry); appendPair(sb, "RetryCount", numberOfRetries); appendPair(sb, "RetryInterval", retryInterval); } appendPair(sb, "timeout", timeout); if (proxyHost != null) { appendPair(sb, "proxyHost", proxyHost); appendPair(sb, "proxyPort", proxyPort); if (proxyUser != null) { appendPair(sb, "proxyUser", proxyUser); appendPair(sb, "proxyPassword", pp != null ? "(masked)" : null); } } appendPair(sb, "useSignAndEncrypted", useSignAndEncrypted); appendPair(sb, "certificateCacheEnabled", certificateCacheEnabled); return (sb.toString()); }