Skip to content

Commit 1862854

Browse files
committed
chore: Remove warning from UserCredentials and ServiceAccounJwtAccessCredentials
1 parent 463159e commit 1862854

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

oauth2_http/java/com/google/auth/oauth2/ServiceAccountJwtAccessCredentials.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -227,13 +227,6 @@ static ServiceAccountJwtAccessCredentials fromPkcs8(
227227
* Returns credentials defined by a Service Account key file in JSON format from the Google
228228
* Developers Console.
229229
*
230-
* <p>Important: If you accept a credential configuration (credential JSON/File/Stream) from an
231-
* external source for authentication to Google Cloud Platform, you must validate it before
232-
* providing it to any Google API or library. Providing an unvalidated credential configuration to
233-
* Google APIs can compromise the security of your systems and data. For more information, refer
234-
* to {@link <a
235-
* href="https://cloud.google.com/docs/authentication/external/externally-sourced-credentials">documentation</a>}.
236-
*
237230
* @param credentialsStream the stream with the credential definition.
238231
* @return the credential defined by the credentialsStream.
239232
* @throws IOException if the credential cannot be created from the stream.
@@ -247,13 +240,6 @@ public static ServiceAccountJwtAccessCredentials fromStream(InputStream credenti
247240
* Returns credentials defined by a Service Account key file in JSON format from the Google
248241
* Developers Console.
249242
*
250-
* <p>Important: If you accept a credential configuration (credential JSON/File/Stream) from an
251-
* external source for authentication to Google Cloud Platform, you must validate it before
252-
* providing it to any Google API or library. Providing an unvalidated credential configuration to
253-
* Google APIs can compromise the security of your systems and data. For more information, refer
254-
* to {@link <a
255-
* href="https://cloud.google.com/docs/authentication/external/externally-sourced-credentials">documentation</a>}.
256-
*
257243
* @param credentialsStream the stream with the credential definition.
258244
* @param defaultAudience Audience to use if not provided by transport. May be null.
259245
* @return the credential defined by the credentialsStream.

oauth2_http/java/com/google/auth/oauth2/UserCredentials.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,6 @@ static UserCredentials fromJson(Map<String, Object> json, HttpTransportFactory t
138138
/**
139139
* Returns credentials defined by a JSON file stream using the format supported by the Cloud SDK.
140140
*
141-
* <p>Important: If you accept a credential configuration (credential JSON/File/Stream) from an
142-
* external source for authentication to Google Cloud Platform, you must validate it before
143-
* providing it to any Google API or library. Providing an unvalidated credential configuration to
144-
* Google APIs can compromise the security of your systems and data. For more information, refer
145-
* to {@link <a
146-
* href="https://cloud.google.com/docs/authentication/external/externally-sourced-credentials">documentation</a>}.
147-
*
148141
* @param credentialsStream the stream with the credential definition.
149142
* @return the credential defined by the credentialsStream.
150143
* @throws IOException if the credential cannot be created from the stream.
@@ -156,13 +149,6 @@ public static UserCredentials fromStream(InputStream credentialsStream) throws I
156149
/**
157150
* Returns credentials defined by a JSON file stream using the format supported by the Cloud SDK.
158151
*
159-
* <p>Important: If you accept a credential configuration (credential JSON/File/Stream) from an
160-
* external source for authentication to Google Cloud Platform, you must validate it before
161-
* providing it to any Google API or library. Providing an unvalidated credential configuration to
162-
* Google APIs can compromise the security of your systems and data. For more information, refer
163-
* to {@link <a
164-
* href="https://cloud.google.com/docs/authentication/external/externally-sourced-credentials">documentation</a>}.
165-
*
166152
* @param credentialsStream the stream with the credential definition.
167153
* @param transportFactory HTTP transport factory, creates the transport used to get access
168154
* tokens.

0 commit comments

Comments
 (0)