All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.taobao.api.internal.toplink.embedded.websocket.handshake.X509AlwaysTrustManager Maven / Gradle / Ivy

package com.taobao.api.internal.toplink.embedded.websocket.handshake;

import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;

import javax.net.ssl.X509TrustManager;

//always trust server cert
public class X509AlwaysTrustManager implements X509TrustManager {
	public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {
	}

	public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {
	}

	public X509Certificate[] getAcceptedIssuers() {
		return null;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy