Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marschall/legacy-compatibility-ssl-socket-factory
A SSLSocketFactory that implements SSLSession.getPeerCertificateChain()
https://github.com/marschall/legacy-compatibility-ssl-socket-factory
java-17 ssl tls
Last synced: about 6 hours ago
JSON representation
A SSLSocketFactory that implements SSLSession.getPeerCertificateChain()
- Host: GitHub
- URL: https://github.com/marschall/legacy-compatibility-ssl-socket-factory
- Owner: marschall
- Created: 2021-09-30T13:25:39.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-12-04T10:28:41.000Z (almost 3 years ago)
- Last Synced: 2023-07-26T21:59:59.645Z (over 1 year ago)
- Topics: java-17, ssl, tls
- Language: Java
- Homepage:
- Size: 35.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Legacy Compatibility SSLSocketFactory [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.marschall/legacy-compatibility-ssl-socket-factory/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.marschall/legacy-compatibility-ssl-socket-factory) [![javadoc](https://javadoc.io/badge2/com.github.marschall/legacy-compatibility-ssl-socket-factory/javadoc.svg)](https://javadoc.io/doc/com.github.marschall/legacy-compatibility-ssl-socket-factory)
=====================================A `SSLSocketFactory` that implements `SSLSession.getPeerCertificateChain()`.
Usage
-----```xml
com.github.marschall
legacy-compatibility-ssl-socket-factory
1.0.0```
```java
SSLSocketFactory socketFactory = new LegacyCompatibilitySSLSocketFactory();// or whatever other object
urlConnection.setSSLSocketFactory(socketFactory);
```Why would you want to use this project?
---------------------------------------You wouldn't want to use this project unless you have to.
Why would you have to use this project?
---------------------------------------You want to migrate to Java 17 but rely on a third party dependency that calls [SSLSession.getPeerCertificateChain()](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/javax/net/ssl/SSLSession.html#getPeerCertificateChain()).
See [JDK-8241047](https://bugs.openjdk.java.net/browse/JDK-8241047) for details.