Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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()

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.