com.universalmediaserver.external.GullableTrustManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of external-maven-plugin Show documentation
Show all versions of external-maven-plugin Show documentation
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.
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;
}
}