如何能实现这一问题
可以用第三方bouncy实现
You can use the bouncy castle tls provider library, it has support for jdk 1.5
The download site for their libraries is here https://www.bouncycastle.org/latest_releases.html you can also use maven.
There is also an example on how to use their provider: https://github.com/bcgit/bc-java/blob/master/tls/src/test/java/org/bouncycastle/jsse/provider/test/BCJSSEClientTest.java#L31-L35