-
-
Notifications
You must be signed in to change notification settings - Fork 216
BE: Add skip ssl for SR #1518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BE: Add skip ssl for SR #1518
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| package io.kafbat.ui.service.ssl; | ||
|
|
||
| import java.security.Provider; | ||
|
|
||
| public class SkipSecurityProvider extends Provider { | ||
| public static final String NAME = "Skip"; | ||
|
|
||
| public SkipSecurityProvider() { | ||
| super(NAME, "1.0", "Skip TrustManagerFactory Provider"); | ||
| put("TrustManagerFactory." + NAME, "io.kafbat.ui.service.ssl.SkipTrustManagerFactorySpi"); | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| package io.kafbat.ui.service.ssl; | ||
|
|
||
| import io.netty.handler.ssl.util.InsecureTrustManagerFactory; | ||
| import java.security.KeyStore; | ||
| import javax.net.ssl.ManagerFactoryParameters; | ||
| import javax.net.ssl.TrustManager; | ||
|
|
||
| @SuppressWarnings("unused") | ||
| public class SkipTrustManagerFactorySpi extends javax.net.ssl.TrustManagerFactorySpi { | ||
|
|
||
| public SkipTrustManagerFactorySpi() { | ||
|
Check failure on line 11 in api/src/main/java/io/kafbat/ui/service/ssl/SkipTrustManagerFactorySpi.java
|
||
| } | ||
|
|
||
| @Override | ||
| protected void engineInit(KeyStore ks) { | ||
|
Check failure on line 15 in api/src/main/java/io/kafbat/ui/service/ssl/SkipTrustManagerFactorySpi.java
|
||
| } | ||
|
|
||
| @Override | ||
| protected void engineInit(ManagerFactoryParameters spec) { | ||
|
Check failure on line 19 in api/src/main/java/io/kafbat/ui/service/ssl/SkipTrustManagerFactorySpi.java
|
||
| } | ||
|
|
||
| @Override | ||
| protected TrustManager[] engineGetTrustManagers() { | ||
| return InsecureTrustManagerFactory.INSTANCE.getTrustManagers(); | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.