package com.yfd.platform.utils;

import org.springframework.stereotype.Component;

import javax.net.ssl.X509TrustManager;
import java.security.cert.X509Certificate;

@Component
public class MyTrustManager implements X509TrustManager {
    @Override
    public void checkClientTrusted(X509Certificate[] chain, String authType) {
    }

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

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