bjoern@2949: package de.intevation.flys.client.server; bjoern@2949: bjoern@2949: import java.security.cert.CertificateException; bjoern@2949: import java.security.cert.X509Certificate; bjoern@2949: bjoern@2949: import org.apache.http.conn.ssl.TrustStrategy; bjoern@2949: bjoern@2949: public class GGInATrustStrategy implements TrustStrategy { bjoern@2949: bjoern@2949: /** bjoern@2949: * Tempoary class to accept all certificates for GGinA Authentication bjoern@2949: */ bjoern@2949: bjoern@2949: @Override bjoern@2949: public boolean isTrusted(X509Certificate[] chain, String authType) throws CertificateException { bjoern@2949: // FIXME validate Certificate bjoern@2949: return true; bjoern@2949: } bjoern@2949: } bjoern@2949: