包含TrustManager

时间:2016-07-25 01:28:32

标签: android google-play trustmanager

我的应用被Google Play商店拒绝了。我收到以下错误

  

我们拒绝了包装名称的PowerConnect Univoice App   com.powerconnect2.android.app,用于违反我们的恶意行为   政策。如果您提交了更新,则应用的先前版本   仍可在Google Play上使用。

错误源自以下类。以前遇到过这个问题的人吗?

package zoiper;

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

class hi implements X509TrustManager {
  hi() {
  }

  public X509Certificate[] getAcceptedIssuers() {
    return new X509Certificate[0];
  }

  public void checkClientTrusted(X509Certificate[] x509CertificateArr, String str) {
  }

  public void checkServerTrusted(X509Certificate[] x509CertificateArr, String str) {
  }
}

我的第二堂课

package zoiper;

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

class fmn implements X509TrustManager {
  fmn() {
  }

  public X509Certificate[] getAcceptedIssuers() {
    return new X509Certificate[0];
  }

  public void checkClientTrusted(X509Certificate[] x509CertificateArr, String str) {
  }

  public void checkServerTrusted(X509Certificate[] x509CertificateArr, String str) {
  }
}

0 个答案:

没有答案