co.freeside.betamax.ssl.DummyX509TrustManager.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of betamax Show documentation
Show all versions of betamax Show documentation
Betamax is a Groovy record/playback proxy for stubbing access to external HTTP resources when testing. Inspired by Ruby's VCR.
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