Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@

package com.google.auth.mtls;

import com.google.api.core.InternalApi;
import java.io.IOException;

@InternalApi
public class DefaultMtlsProviderFactory {

/**
Expand All @@ -40,9 +42,6 @@ public class DefaultMtlsProviderFactory {
* creating a {@link SecureConnectProvider}. If the secure connect provider also fails, it throws
* a {@link com.google.auth.mtls.CertificateSourceUnavailableException}.
*
* <p>This is only meant to be used internally by Google Cloud libraries, and the public facing
* methods may be changed without notice, and have no guarantee of backwards compatibility.
*
* @return an instance of {@link MtlsProvider}.
* @throws com.google.auth.mtls.CertificateSourceUnavailableException if neither provider can be
* created.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import com.google.api.client.json.JsonParser;
import com.google.api.client.json.gson.GsonFactory;
import com.google.api.client.util.SecurityUtils;
import com.google.api.core.InternalApi;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.collect.ImmutableList;
import java.io.FileInputStream;
Expand All @@ -46,9 +47,7 @@

/**
* This class implements {@link MtlsProvider} for the Google Auth library transport layer via {@link
* ContextAwareMetadataJson}. This is only meant to be used internally by Google Cloud libraries,
* and the public facing methods may be changed without notice, and have no guarantee of backwards
* compatibility.
* ContextAwareMetadataJson}.
*
* <p>Note: This implementation is derived from the existing "MtlsProvider" found in the Gax
* library, with two notable differences: 1) All logic associated with parsing environment variables
Expand All @@ -60,6 +59,7 @@
* <p>Additionally, this implementation will replace the existing "MtlsProvider" in the Gax library.
* The Gax library version of MtlsProvider will be marked as deprecated.
*/
@InternalApi
public class SecureConnectProvider implements MtlsProvider {
interface ProcessProvider {
public Process createProcess(InputStream metadata) throws IOException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@

/**
* This class implements {@link MtlsProvider} for the Google Auth library transport layer via {@link
* WorkloadCertificateConfiguration}. This is only meant to be used internally by Google Cloud
* libraries, and the public facing methods may be changed without notice, and have no guarantee of
* backwards compatibility.
* WorkloadCertificateConfiguration}.
*/
@InternalApi
public class X509Provider implements MtlsProvider {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,7 @@
import java.util.Map;
import java.util.Set;

/**
* Internal utilities for the com.google.auth.oauth2 namespace.
*
* <p>These classes are marked public but should be treated effectively as internal classes only.
* They are not subject to any backwards compatibility guarantees and might change or be removed at
* any time. They are provided only as a convenience for other libraries within the {@code
* com.google.auth} family. Application developers should avoid using these classes directly; they
* are not part of the public API.
*/
/** Internal utilities for the com.google.auth.oauth2 namespace. */
@InternalApi
public class OAuth2Utils {

Expand Down
Loading