package core.framework.impl.http;

import javax.net.ssl.SSLEngine;
import javax.net.ssl.X509ExtendedTrustManager;
import java.net.Socket;
import java.security.cert.X509Certificate;

/**
 * @author neo
 */
public class SelfSignedTrustManager extends X509ExtendedTrustManager {
    @Override
    public void checkClientTrusted(X509Certificate[] chain, String authType, Socket socket) {
    }

    @Override
    public void checkServerTrusted(X509Certificate[] chain, String authType, Socket socket) {
    }

    @Override
    public void checkClientTrusted(X509Certificate[] chain, String authType, SSLEngine engine) {
    }

    @Override
    public void checkServerTrusted(X509Certificate[] chain, String authType, SSLEngine engine) {
    }

    @Override
    public X509Certificate[] getAcceptedIssuers() {
        return new X509Certificate[0];
    }

    @Override
    public void checkServerTrusted(final X509Certificate[] chain, final String authType) {
    }

    @Override
    public void checkClientTrusted(final X509Certificate[] chain, final String authType) {
    }
}


@@ -354,39 +354,24 @@
 ing authType
-, Socket socket
 ) %7B%0A    %7D%0A%0A 
@@ -396,38 +396,38 @@
 ublic void check
-Server
+Client
 Trusted(X509Cert
@@ -691,34 +691,16 @@
 authType
-, SSLEngine engine
 ) %7B%0A    
@@ -731,87 +731,90 @@
 lic 
-X509Certificate%5B%5D getAcceptedIssuers() %7B%0A        return new X509Certificate%5B0%5D;
+void checkServerTrusted(X509Certificate%5B%5D chain, String authType, Socket socket) %7B
 %0A   
@@ -858,38 +858,32 @@
 ckServerTrusted(
-final 
 X509Certificate%5B
@@ -882,38 +882,32 @@
 ificate%5B%5D chain,
- final
  String authType
@@ -898,32 +898,50 @@
  String authType
+, SSLEngine engine
 ) %7B%0A    %7D%0A%0A    @
@@ -964,87 +964,87 @@
 lic 
-void checkClientTrusted(final X509Certificate%5B%5D chain, final String authType) %7B
+X509Certificate%5B%5D getAcceptedIssuers() %7B%0A        return new X509Certificate%5B0%5D;
 %0A   

fix checkstyle