Skip to content

Commit b04f046

Browse files
authored
chore: Add @internalapi annotations for internal public classes (#1903)
1 parent 0a7895a commit b04f046

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

google-auth-library-java/oauth2_http/java/com/google/auth/mtls/MtlsHttpTransportFactory.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
package com.google.auth.mtls;
3333

3434
import com.google.api.client.http.javanet.NetHttpTransport;
35+
import com.google.api.core.InternalApi;
3536
import com.google.auth.http.HttpTransportFactory;
3637
import java.security.GeneralSecurityException;
3738
import java.security.KeyStore;
@@ -45,6 +46,7 @@
4546
* <p><b>Warning:</b> This class is considered internal and is not intended for direct use by
4647
* library consumers. Its API and behavior may change without notice.
4748
*/
49+
@InternalApi
4850
public class MtlsHttpTransportFactory implements HttpTransportFactory {
4951
private final KeyStore mtlsKeyStore;
5052

google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/OAuth2Utils.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
import com.google.api.client.util.PemReader;
4242
import com.google.api.client.util.PemReader.Section;
4343
import com.google.api.client.util.SecurityUtils;
44+
import com.google.api.core.InternalApi;
4445
import com.google.auth.http.AuthHttpConstants;
4546
import com.google.auth.http.HttpTransportFactory;
4647
import com.google.common.base.Strings;
@@ -78,6 +79,7 @@
7879
* com.google.auth} family. Application developers should avoid using these classes directly; they
7980
* are not part of the public API.
8081
*/
82+
@InternalApi
8183
public class OAuth2Utils {
8284

8385
static final String SIGNATURE_ALGORITHM = "SHA256withRSA";

0 commit comments

Comments
 (0)