app/src/main/java/com/mensa/zhmensa/services/HttpUtils.java
/*
             * Loop over the trustmanagers until we find one that accepts our server
             */
Loop over the trustmanagers until we find one that accepts our server
Loop over the trustmanagers until we find one that accepts our server
public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {
                for( X509TrustManager tm : x509TrustManagers ) {
                    try {
                        tm.checkServerTrusted(chain,authType);
                        return;
                    } catch( CertificateException e ) {
                    }
                }
                throw new CertificateException();
            }
public void checkServerTrusted ( X509Certificate [ ] chain , String authType ) throws CertificateException { for ( X509TrustManager tm : x509TrustManagers ) { try { tm . checkServerTrusted ( chain , authType ) ; return ; } catch ( CertificateException e ) { } } throw new CertificateException ( ) ; }
Loop over the trustmanagers until we find one that accepts our server
Loop over the trustmanagers until we find one that accepts our server
// ignore