Mercurial > dive4elements > river
annotate flys-client/src/main/java/de/intevation/flys/client/server/GGInATrustStrategy.java @ 3497:88feb3347aa5
Implement a ProxyServlet
Implement a ProxyServlet to be able to restrict the access to the
mapserver too. All queries to the provided map services should go throught
this new ProxyServlet. Currently the ProxyServlet can only handle HTTP GET
requests.
flys-client/trunk@5221 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Bjoern Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Thu, 16 Aug 2012 14:42:36 +0000 |
parents | abf267708672 |
children |
rev | line source |
---|---|
2949
abf267708672
Add a TrustStategy to be able to ignore SSL Certificate issues with GGinA
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
1 package de.intevation.flys.client.server; |
abf267708672
Add a TrustStategy to be able to ignore SSL Certificate issues with GGinA
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
2 |
abf267708672
Add a TrustStategy to be able to ignore SSL Certificate issues with GGinA
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
3 import java.security.cert.CertificateException; |
abf267708672
Add a TrustStategy to be able to ignore SSL Certificate issues with GGinA
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
4 import java.security.cert.X509Certificate; |
abf267708672
Add a TrustStategy to be able to ignore SSL Certificate issues with GGinA
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
5 |
abf267708672
Add a TrustStategy to be able to ignore SSL Certificate issues with GGinA
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
6 import org.apache.http.conn.ssl.TrustStrategy; |
abf267708672
Add a TrustStategy to be able to ignore SSL Certificate issues with GGinA
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
7 |
abf267708672
Add a TrustStategy to be able to ignore SSL Certificate issues with GGinA
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
8 public class GGInATrustStrategy implements TrustStrategy { |
abf267708672
Add a TrustStategy to be able to ignore SSL Certificate issues with GGinA
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
9 |
abf267708672
Add a TrustStategy to be able to ignore SSL Certificate issues with GGinA
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
10 /** |
abf267708672
Add a TrustStategy to be able to ignore SSL Certificate issues with GGinA
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
11 * Tempoary class to accept all certificates for GGinA Authentication |
abf267708672
Add a TrustStategy to be able to ignore SSL Certificate issues with GGinA
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
12 */ |
abf267708672
Add a TrustStategy to be able to ignore SSL Certificate issues with GGinA
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
13 |
abf267708672
Add a TrustStategy to be able to ignore SSL Certificate issues with GGinA
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
14 @Override |
abf267708672
Add a TrustStategy to be able to ignore SSL Certificate issues with GGinA
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
15 public boolean isTrusted(X509Certificate[] chain, String authType) throws CertificateException { |
abf267708672
Add a TrustStategy to be able to ignore SSL Certificate issues with GGinA
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
16 // FIXME validate Certificate |
abf267708672
Add a TrustStategy to be able to ignore SSL Certificate issues with GGinA
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
17 return true; |
abf267708672
Add a TrustStategy to be able to ignore SSL Certificate issues with GGinA
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
18 } |
abf267708672
Add a TrustStategy to be able to ignore SSL Certificate issues with GGinA
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
19 } |
abf267708672
Add a TrustStategy to be able to ignore SSL Certificate issues with GGinA
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
20 |