TrustAllManager.java :  » SMS » smseth-android » ch » ethz » smseth » Android Open Source

Android Open Source » SMS » smseth android 
smseth android » ch » ethz » smseth » TrustAllManager.java
package ch.ethz.smseth;

import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;

import javax.net.ssl.X509TrustManager;

public class TrustAllManager implements X509TrustManager {
    public void checkClientTrusted(X509Certificate[] cert, String authType) throws CertificateException { }
    public void checkServerTrusted(X509Certificate[] cert, String authType) throws CertificateException { }
    public X509Certificate[] getAcceptedIssuers() { return null; }
} 
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.