mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-05 18:58:02 -05:00
Use NewIbmX509 on IBM JDK instead of NewSunX509 SSL algorithm implementation
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2077 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
67d665ff5f
commit
991399c7fb
@ -107,8 +107,13 @@ public class DavGatewaySSLProtocolSocketFactory implements SecureProtocolSocketF
|
||||
}
|
||||
SunPKCS11ProviderHandler.registerProvider(pkcs11Buffer.toString());
|
||||
}
|
||||
|
||||
KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(/*KeyManagerFactory.getDefaultAlgorithm()*/"NewSunX509");
|
||||
String algorithm = KeyManagerFactory.getDefaultAlgorithm();
|
||||
if ("SunX509".equals(algorithm)) {
|
||||
algorithm = "NewSunX509";
|
||||
} else if ("IbmX509".equals(algorithm)) {
|
||||
algorithm = "NewIbmX509";
|
||||
}
|
||||
KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(algorithm);
|
||||
|
||||
ArrayList<KeyStore.Builder> keyStoreBuilders = new ArrayList<KeyStore.Builder>();
|
||||
// PKCS11 (smartcard) keystore with password callback
|
||||
|
Loading…
Reference in New Issue
Block a user