Skip to content

Commit

Permalink
Remove public
Browse files Browse the repository at this point in the history
  • Loading branch information
ikhoon committed Jan 30, 2024
1 parent 6690425 commit c15e7bf
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
/**
* A skeletal builder implementation for {@link HeadersSanitizer}.
*/
public abstract class AbstractHeadersSanitizerBuilder<T> {
abstract class AbstractHeadersSanitizerBuilder<T> {

// Referenced from:
// - https://docs.rs/tower-http/latest/tower_http/sensitive_headers/index.html
Expand All @@ -47,8 +47,6 @@ public abstract class AbstractHeadersSanitizerBuilder<T> {

private HeaderMaskingFunction maskingFunction = HeaderMaskingFunction.of();

AbstractHeadersSanitizerBuilder() {}

/**
* Adds the headers to mask before logging.
*/
Expand Down Expand Up @@ -83,7 +81,7 @@ final Set<AsciiString> sensitiveHeaders() {
* <pre>{@code
* builder.maskingFunction((name, value) -> {
* if (name.equals(HttpHeaderNames.AUTHORIZATION)) {
* return "****";
* return "****";
* } else if (name.equals(HttpHeaderNames.COOKIE)) {
* return name.substring(0, 4) + "****";
* } else {
Expand Down

0 comments on commit c15e7bf

Please sign in to comment.