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
Azure keyvault trust manager with multiple keystores. (Azure#20548)
* Let the azure trust maanger also employ local JRE keystore, and change the README accordingly
* Support server side to override trust manager factory by azure jca trust manager factory
* add logger
Co-authored-by: Michael Qi <v-michaelqi@microsoft.com>
Copy file name to clipboardExpand all lines: sdk/keyvault/azure-security-keyvault-jca/src/main/java/com/azure/security/keyvault/jca/KeyVaultTrustManager.java
+81-19Lines changed: 81 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,11 @@
3
3
4
4
packagecom.azure.security.keyvault.jca;
5
5
6
-
importjavax.net.ssl.TrustManagerFactory;
7
6
importjavax.net.ssl.X509TrustManager;
7
+
importjavax.net.ssl.X509ExtendedTrustManager;
8
+
importjavax.net.ssl.TrustManager;
9
+
importjavax.net.ssl.SSLEngine;
10
+
importjavax.net.ssl.TrustManagerFactory;
8
11
importjava.io.IOException;
9
12
importjava.net.Socket;
10
13
importjava.security.KeyStore;
@@ -13,19 +16,31 @@
13
16
importjava.security.NoSuchProviderException;
14
17
importjava.security.cert.CertificateException;
15
18
importjava.security.cert.X509Certificate;
16
-
importjavax.net.ssl.SSLEngine;
17
-
importjavax.net.ssl.X509ExtendedTrustManager;
19
+
importjava.util.logging.Logger;
20
+
21
+
importstaticjava.util.logging.Level.WARNING;
22
+
importstaticjava.util.logging.Level.INFO;
18
23
19
24
/**
20
25
* The Azure Key Vault variant of the X509TrustManager.
Copy file name to clipboardExpand all lines: sdk/keyvault/azure-security-keyvault-jca/src/main/java/com/azure/security/keyvault/jca/KeyVaultTrustManagerFactory.java
0 commit comments