Java Client - Add Bouncy Castle Provider to AuthenticationTls
package org.apache.pulsar.client.impl.auth;
import java.io.IOException;
+import java.security.Security;
import java.util.Map;
import org.apache.pulsar.client.api.Authentication;
@@ -41,6 +42,11 @@ public class AuthenticationTls implements Authentication, EncodedAuthenticationP
private String certFilePath;
private String keyFilePath;
+ // Load Bouncy Castle
+ static {
+ Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
+ }
+
public AuthenticationTls() {
}
