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

com.universalmediaserver.external.GullableTrustManager Maven / Gradle / Ivy

Go to download

This is a fork of "Maven External Dependency Plugin", http://code.google.com/p/maven-external-dependency-plugin/ This Maven plugin allows downloading, installing, and deploying dependency artifacts that are not stored in a Maven repository.

There is a newer version: 0.3
Show newest version
package com.universalmediaserver.external;

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

/**
 * This a {@link X509TrustManager} that trusts any certificate.
 */
public class GullableTrustManager implements X509TrustManager {

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy