Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/server/GGInATrustStrategy.java @ 5838:5aa05a7a34b7
Rename modules to more fitting names.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 25 Apr 2013 15:23:37 +0200 |
parents | flys-client/src/main/java/org/dive4elements/river/client/server/GGInATrustStrategy.java@821a02bbfb4e |
children | 172338b1407f |
comparison
equal
deleted
inserted
replaced
5837:d9901a08d0a6 | 5838:5aa05a7a34b7 |
---|---|
1 package org.dive4elements.river.client.server; | |
2 | |
3 import java.security.cert.CertificateException; | |
4 import java.security.cert.X509Certificate; | |
5 | |
6 import org.apache.http.conn.ssl.TrustStrategy; | |
7 | |
8 public class GGInATrustStrategy implements TrustStrategy { | |
9 | |
10 /** | |
11 * Tempoary class to accept all certificates for GGinA Authentication | |
12 */ | |
13 | |
14 @Override | |
15 public boolean isTrusted(X509Certificate[] chain, String authType) throws CertificateException { | |
16 // FIXME validate Certificate | |
17 return true; | |
18 } | |
19 } | |
20 |