hoboy
March 11th, 2012, 11:35 AM
I am looking at some ksoap-2-android then I saw this
http://stackoverflow.com/questions/3440062/ksoap-2-android-with-https
I need an explanation is this method.
Is this a method call or a variable declaration ?
private TrustManager[] trustAllCerts = new TrustManager[]{
}
private TrustManager[] trustAllCerts = new TrustManager[]{
new X509TrustManager() {
public java.security.cert.X509Certificate[] getAcceptedIssuers() {
return null;
}
public void checkClientTrusted(
java.security.cert.X509Certificate[] certs, String authType) {
}
public void checkServerTrusted(
java.security.cert.X509Certificate[] certs, String authType) {
}
}
};
http://stackoverflow.com/questions/3440062/ksoap-2-android-with-https
I need an explanation is this method.
Is this a method call or a variable declaration ?
private TrustManager[] trustAllCerts = new TrustManager[]{
}
private TrustManager[] trustAllCerts = new TrustManager[]{
new X509TrustManager() {
public java.security.cert.X509Certificate[] getAcceptedIssuers() {
return null;
}
public void checkClientTrusted(
java.security.cert.X509Certificate[] certs, String authType) {
}
public void checkServerTrusted(
java.security.cert.X509Certificate[] certs, String authType) {
}
}
};