Skip to content

Commit

Permalink
Explain why no format check.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmehta19 committed Oct 25, 2024
1 parent 12b248d commit 4d05638
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions oauth2_http/java/com/google/auth/oauth2/S2AConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,20 @@ public static final class Builder {

@CanIgnoreReturnValue
public Builder setPlaintextAddress(String plaintextAddress) {
/*
* No validation / format check is necessary here. It is up to the client which consumes this address
* to return error if there is a problem connecting to S2A at that address.
*/
this.plaintextAddress = plaintextAddress;
return this;
}

@CanIgnoreReturnValue
public Builder setMtlsAddress(String mtlsAddress) {
/*
* No validation / format check is necessary here. It is up to the client which consumes this address
* to return error if there is a problem connecting to S2A at that address.
*/
this.mtlsAddress = mtlsAddress;
return this;
}
Expand Down

0 comments on commit 4d05638

Please sign in to comment.