Skip to content

Commit

Permalink
Improve javadoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmehta19 committed Oct 24, 2024
1 parent 47b3f2e commit fb577a1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion oauth2_http/java/com/google/auth/oauth2/S2A.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,15 @@ public S2A build() {
/**
* Queries the MDS mTLS Autoconfiguration endpoint and returns the {@link S2AConfig}.
*
* <p>Returns {@link S2AConfig} with empty addresses on error.
* <p>Returns {@link S2AConfig}. If S2A is not running, or if any error occurs when
* making the request to MDS, {@link S2AConfig} will be populated with empty addresses.
*
* Users are expected to try to fetch the mTLS-S2A address first (via
* {@link getMtlsS2AAddress}). If it is empty or they have some problem loading the
* mTLS-MDS credentials, they should then fallback to fetching the plaintext-S2A address
* (via {@link getPlaintextS2AAddress}). If the plaintext-S2A address is empty it means
* that an error occurred when talking to the MDS or that S2A is not running in the
* environment; in either case this indicates S2A shouldn't be used.
*
* @return the {@link S2AConfig}.
*/
Expand Down

0 comments on commit fb577a1

Please sign in to comment.