|
1 | 1 | /* |
2 | | - * Copyright 2025, Google Inc. All rights reserved. |
| 2 | + * Copyright 2025 Google LLC |
3 | 3 | * |
4 | 4 | * Redistribution and use in source and binary forms, with or without |
5 | 5 | * modification, are permitted provided that the following conditions are |
6 | 6 | * met: |
7 | 7 | * |
8 | | - * * Redistributions of source code must retain the above copyright |
| 8 | + * * Redistributions of source code must retain the above copyright |
9 | 9 | * notice, this list of conditions and the following disclaimer. |
10 | | - * * Redistributions in binary form must reproduce the above |
| 10 | + * * Redistributions in binary form must reproduce the above |
11 | 11 | * copyright notice, this list of conditions and the following disclaimer |
12 | 12 | * in the documentation and/or other materials provided with the |
13 | 13 | * distribution. |
14 | | - * |
15 | | - * * Neither the name of Google Inc. nor the names of its |
| 14 | + * * Neither the name of Google LLC nor the names of its |
16 | 15 | * contributors may be used to endorse or promote products derived from |
17 | 16 | * this software without specific prior written permission. |
18 | 17 | * |
|
45 | 44 | import java.util.List; |
46 | 45 |
|
47 | 46 | /** |
48 | | - * Provider class for mutual TLS. It is used to configure the mutual TLS in the transport with the |
49 | | - * default client certificate on device. |
| 47 | + * This class implements {@link MtlsProvider} for the Google Auth library transport layer via {@link |
| 48 | + * ContextAwareMetadataJson}. This is only meant to be used internally by Google Cloud libraries, |
| 49 | + * and the public facing methods may be changed without notice, and have no guarantee of backwards |
| 50 | + * compatability. |
| 51 | + * |
| 52 | + * <p>Note: This implementation is derived from the existing "MtlsProvider" found in the Gax |
| 53 | + * library, with two notable differences: 1) All logic associated with parsing environment variables |
| 54 | + * related to "mTLS usage" are omitted - a separate helper class will be introduced in the Gax |
| 55 | + * library to serve this purpose. 2) getKeyStore throws {@link |
| 56 | + * com.google.auth.mtls.CertificateSourceUnavailableException} instead of returning "null" if this |
| 57 | + * cert source is not available on the device. |
| 58 | + * |
| 59 | + * <p>Additionally, this implementation will replace the existing "MtlsProvider" in the Gax library. |
| 60 | + * The Gax library version of MtlsProvider will be marked as deprecated. |
50 | 61 | */ |
51 | 62 | public class SecureConnectProvider implements MtlsProvider { |
52 | 63 | interface ProcessProvider { |
|
0 commit comments