You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/testing/RemoteTranslateHelper.java
+47-12Lines changed: 47 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@
16
16
17
17
packagecom.google.cloud.translate.testing;
18
18
19
+
importcom.google.api.core.ObsoleteApi;
19
20
importcom.google.api.gax.retrying.RetrySettings;
20
21
importcom.google.auth.oauth2.GoogleCredentials;
21
22
importcom.google.cloud.http.HttpTransportOptions;
@@ -51,7 +52,27 @@ public TranslateOptions getOptions() {
51
52
}
52
53
53
54
/**
54
-
* Creates a {@code RemoteTranslateHelper} object for the given project id and JSON key input
55
+
* This method is obsolete because of a potential security risk. Use the {@link #create(String,
56
+
* GoogleCredentials)} method instead.
57
+
*
58
+
* <p>If you know that you will be loading credential configurations of a specific type, it is
59
+
* recommended to use a credential-type-specific `fromStream()` method. This will ensure that an
60
+
* unexpected credential type with potential for malicious intent is not loaded unintentionally.
61
+
* You might still have to do validation for certain credential types. Please follow the
62
+
* recommendation for that method.
63
+
*
64
+
* <p>If you are loading your credential configuration from an untrusted source and have not
65
+
* mitigated the risks (e.g. by validating the configuration yourself), make these changes as soon
66
+
* as possible to prevent security risks to your environment.
67
+
*
68
+
* <p>Regardless of the method used, it is always your responsibility to validate configurations
Copy file name to clipboardExpand all lines: java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/it/v1beta/VPCServiceControlNegativeTest.java
Copy file name to clipboardExpand all lines: java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/it/v1beta/VPCServiceControlPositiveTest.java
0 commit comments