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
@@ -207,14 +207,18 @@ com.azure.security.keyvault.jca.level = ALL
207
207
Azure Key Vault JCA clients raise exceptions. For example, if you try to check a client's identity with a certificate chain that does not include a trusted certificate, a `CertificateException` will be thrown. In the following snippet, the error is handled gracefully by catching the exception and displaying additional information about the error.
208
208
209
209
```java
210
-
try {
211
-
KeyVaultJcaProvider provider = new KeyVaultJcaProvider();
212
-
Security.addProvider(provider);
213
-
...
214
-
// Start SSL server socket
215
-
...
216
-
} catch (CertificateException e) {
217
-
System.out.println(e.getMessage());
210
+
class Demo {
211
+
void demo () {
212
+
try {
213
+
KeyVaultJcaProvider provider = new KeyVaultJcaProvider();
0 commit comments