Back to project page devoxx-2013-android-app-security.
The source code is released under:
Apache License
If you think the Android project devoxx-2013-android-app-security listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package be.idamf.android.tamperdetection.pinning; /*from w ww . j av a 2 s .c o m*/ import java.security.cert.CertificateException; import java.security.cert.X509Certificate; import javax.net.ssl.X509TrustManager; /** * Don't use an X509TrustManager that accepts all certificates. */ public class TrustAllTrustManager implements X509TrustManager { @Override public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException { // trust all! } @Override public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException { // trust all! } @Override public X509Certificate[] getAcceptedIssuers() { return null; } }