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

co.freeside.betamax.ssl.DummyX509TrustManager.groovy Maven / Gradle / Ivy

Go to download

Betamax is a Groovy record/playback proxy for stubbing access to external HTTP resources when testing. Inspired by Ruby's VCR.

There is a newer version: 1.1.2
Show newest version
package co.freeside.betamax.ssl

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

class DummyX509TrustManager implements X509TrustManager {

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

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

	@Override
	X509Certificate[] getAcceptedIssuers() {
		null
	}
}










© 2015 - 2025 Weber Informatics LLC | Privacy Policy