Repository navigation
docs(auth): add missing class Javadocs, update fromStream type lists, and fix typos #15314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -168,6 +168,9 @@ | |||||||||||||
| * | ||||||||||||||
| * @return the credentials instance. | ||||||||||||||
| * @throws IOException if the credentials cannot be created in the current environment. | ||||||||||||||
| * @see <a | ||||||||||||||
| * href="https://docs.cloud.google.com/docs/authentication/application-default-credentials#order">Application | ||||||||||||||
| * Default Credentials search order</a> | ||||||||||||||
| */ | ||||||||||||||
| public static GoogleCredentials getApplicationDefault() throws IOException { | ||||||||||||||
| return getApplicationDefault(OAuth2Utils.HTTP_TRANSPORT_FACTORY); | ||||||||||||||
|
|
@@ -183,8 +186,12 @@ | |||||||||||||
| * <ol> | ||||||||||||||
| * <li>Credentials file pointed to by the {@code GOOGLE_APPLICATION_CREDENTIALS} environment | ||||||||||||||
| * variable | ||||||||||||||
| * <li>Credentials provided by the Google Cloud SDK {@code gcloud auth application-default | ||||||||||||||
| * login} command | ||||||||||||||
| * <li>Credentials provided by the Google Cloud SDK. | ||||||||||||||
| * <ol> | ||||||||||||||
| * <li>{@code gcloud auth application-default login} for user account credentials. | ||||||||||||||
| * <li>{@code gcloud auth application-default login --impersonate-service-account} for | ||||||||||||||
| * impersonated service account credentials. | ||||||||||||||
| * </ol> | ||||||||||||||
| * <li>Google App Engine built-in credentials | ||||||||||||||
| * <li>Google Cloud Shell built-in credentials | ||||||||||||||
| * <li>Google Compute Engine built-in credentials | ||||||||||||||
|
|
@@ -194,6 +201,9 @@ | |||||||||||||
| * tokens. | ||||||||||||||
| * @return the credentials instance. | ||||||||||||||
| * @throws IOException if the credentials cannot be created in the current environment. | ||||||||||||||
| * @see <a | ||||||||||||||
| * href="https://docs.cloud.google.com/docs/authentication/application-default-credentials#order">Application | ||||||||||||||
| * Default Credentials search order</a> | ||||||||||||||
|
Comment on lines
+204
to
+206
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The URL domain
Suggested change
|
||||||||||||||
| */ | ||||||||||||||
| public static GoogleCredentials getApplicationDefault(HttpTransportFactory transportFactory) | ||||||||||||||
| throws IOException { | ||||||||||||||
|
|
@@ -225,14 +235,18 @@ | |||||||||||||
| * <p>Regardless of the method used, it is always your responsibility to validate configurations | ||||||||||||||
| * received from external sources. | ||||||||||||||
| * | ||||||||||||||
| * <p>See the {@see <a | ||||||||||||||
|
Check failure on line 238 in google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/GoogleCredentials.java
|
||||||||||||||
| * href="https://cloud.google.com/docs/authentication/external/externally-sourced-credentials">documentation</a>} | ||||||||||||||
| * for more details. | ||||||||||||||
| * | ||||||||||||||
| * <p>Returns credentials defined by a JSON file stream. | ||||||||||||||
| * | ||||||||||||||
| * <p>The stream can contain a Service Account key file in JSON format from the Google Developers | ||||||||||||||
| * Console or a stored user credential using the format supported by the Cloud SDK. | ||||||||||||||
| * <p>The stream can contain a JSON credential configuration for any supported type: {@link | ||||||||||||||
| * ServiceAccountCredentials} ({@code service_account}), {@link UserCredentials} ({@code | ||||||||||||||
| * authorized_user}), {@link ExternalAccountCredentials} ({@code external_account}), {@link | ||||||||||||||
| * ExternalAccountAuthorizedUserCredentials} ({@code external_account_authorized_user}), {@link | ||||||||||||||
| * ImpersonatedCredentials} ({@code impersonated_service_account}), or {@link GdchCredentials} | ||||||||||||||
| * ({@code gdch_service_account}). | ||||||||||||||
| * | ||||||||||||||
| * @param credentialsStream the stream with the credential definition. | ||||||||||||||
| * @return the credential defined by the credentialsStream. | ||||||||||||||
|
|
@@ -292,14 +306,18 @@ | |||||||||||||
| * <p>Regardless of the method used, it is always your responsibility to validate configurations | ||||||||||||||
| * received from external sources. | ||||||||||||||
| * | ||||||||||||||
| * <p>See the {@see <a | ||||||||||||||
|
Check failure on line 309 in google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/GoogleCredentials.java
|
||||||||||||||
| * href="https://cloud.google.com/docs/authentication/external/externally-sourced-credentials">documentation</a>} | ||||||||||||||
| * for more details. | ||||||||||||||
| * | ||||||||||||||
| * <p>Returns credentials defined by a JSON file stream. | ||||||||||||||
| * | ||||||||||||||
| * <p>The stream can contain a Service Account key file in JSON format from the Google Developers | ||||||||||||||
| * Console or a stored user credential using the format supported by the Cloud SDK. | ||||||||||||||
| * <p>The stream can contain a JSON credential configuration for any supported type: {@link | ||||||||||||||
| * ServiceAccountCredentials} ({@code service_account}), {@link UserCredentials} ({@code | ||||||||||||||
| * authorized_user}), {@link ExternalAccountCredentials} ({@code external_account}), {@link | ||||||||||||||
| * ExternalAccountAuthorizedUserCredentials} ({@code external_account_authorized_user}), {@link | ||||||||||||||
| * ImpersonatedCredentials} ({@code impersonated_service_account}), or {@link GdchCredentials} | ||||||||||||||
| * ({@code gdch_service_account}). | ||||||||||||||
| * | ||||||||||||||
| * @param credentialsStream the stream with the credential definition. | ||||||||||||||
| * @return the credential defined by the credentialsStream. | ||||||||||||||
|
|
||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The URL domain
docs.cloud.google.comis incorrect. The canonical domain for Google Cloud documentation iscloud.google.com.