Android Open Source - MtGoxWidget Trust All Manager






From Project

Back to project page MtGoxWidget.

License

The source code is released under:

Apache License

If you think the Android project MtGoxWidget listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package st.brothas.mtgoxwidget.net;
//w w  w.j a  v a  2  s .c om
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;

import javax.net.ssl.X509TrustManager;

/*
 * Taken from: http://meneameandroid.googlecode.com/svn/trunk/src/com/dcg/auth/TrustAllManager.java
 * Big thanks to B.Thax.DCG and pakore!
 *
 */
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;
  }
}




Java Source Code List

st.brothas.mtgoxwidget.ColorMode.java
st.brothas.mtgoxwidget.CurrencyConversion.java
st.brothas.mtgoxwidget.GraphPopupActivity.java
st.brothas.mtgoxwidget.MtGoxDataOpenHelper.java
st.brothas.mtgoxwidget.MtGoxPreferencesActivity.java
st.brothas.mtgoxwidget.MtGoxTickerData.java
st.brothas.mtgoxwidget.MtGoxTickerUtil.java
st.brothas.mtgoxwidget.MtGoxWidgetProvider.java
st.brothas.mtgoxwidget.RateService.java
st.brothas.mtgoxwidget.WidgetPreferences.java
st.brothas.mtgoxwidget.net.HttpManager.java
st.brothas.mtgoxwidget.net.TrustAllManager.java
st.brothas.mtgoxwidget.net.TrustAllSSLSocketFactory.java