Skip to content

Commit ade0ee0

Browse files
committed
docs: match deprecated message with guidance
1 parent fff31d8 commit ade0ee0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

google-api-client/src/main/java/com/google/api/client/googleapis/auth/oauth2/GoogleCredential.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,7 @@ public static GoogleCredential getApplicationDefault(
222222
* @param credentialStream the stream with the credential definition.
223223
* @return the credential defined by the credentialStream.
224224
* @throws IOException if the credential cannot be created from the stream.
225-
* @deprecated Please use <a href="https://github.com/googleapis/google-auth-library-java">
226-
* google-auth-library</a> for handling Application Default Credentials and other non-OAuth2
227-
* based authentication.
225+
* @deprecated This method is being deprecated because of a potential security risk.
228226
*/
229227
@Beta
230228
@Deprecated
@@ -259,9 +257,7 @@ public static GoogleCredential fromStream(InputStream credentialStream) throws I
259257
* @param credentialStream the stream with the credential definition.
260258
* @return the credential defined by the credentialStream.
261259
* @throws IOException if the credential cannot be created from the stream.
262-
* @deprecated Please use <a href="https://github.com/googleapis/google-auth-library-java">
263-
* google-auth-library</a> for handling Application Default Credentials and other non-OAuth2
264-
* based authentication.
260+
* @deprecated This method is being deprecated because of a potential security risk.
265261
*/
266262
@Beta
267263
@Deprecated

0 commit comments

Comments
 (0)