I am using Java 6. And I am supposed to use TLS1.2 for a partner integration. So, I am using BouncyCastle provider to get this done in Java 6. But, I am seeing this error.
java.security.NoSuchAlgorithmException: TLSv1.2 SSLContext not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:142)
at javax.net.ssl.SSLContext.getInstance(SSLContext.java:125)
I have kept BouncyCastle jars in the classpath and added this line in the program.
Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
Could you help resolve this issue?
Thank you in advance.