Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ public static Builder newBuilder() {
return new Builder();
}

/** Builder of IdTokenCredentials. For usage and examples, see {@link IdTokenCredentials} */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey sorry, I just noticed this PR. I don't think this change actually address the feedback from the ticket.

We should add javadocs for:

  1. setIdTokenProvider - This cannot be set to null
  2. setTargetAudience - should not be set for userCredentials as targetAudience cannot be set for UserCredentials. For other credentials, this cannot be null.

Additionally, it looks like setOptions can be null, though I think we probably should check for nullness here as well

public static class Builder extends OAuth2Credentials.Builder {

private IdTokenProvider idTokenProvider;
Expand Down