boolean updateObscuredHeaderValue(String name, String value) { if (!obfuscator.processHeader(name, value)) { return false; } ObscuredValueMarker curMarker = getObscuredValueMarker(); ObscuredValueMarker httpMarker = obfuscator.getSensitiveValueMarker(); /* * Check if substituted the marker (e.g., for addresses obscuring). * If so, then inform the substituted marker as well of the * obscured header value */ if (curMarker != httpMarker) { curMarker.markObscured(value); } return true; }
SocketCollectOperationContext(HttpObfuscator hdrsObfuscator) { obfuscator = hdrsObfuscator; obscuredMarker = hdrsObfuscator.getSensitiveValueMarker(); }