comparison gwt-client/src/main/java/org/dive4elements/river/client/server/auth/was/Authenticator.java @ 5933:1b939742629e

Pass LoginServlet's ServletContext to the Authenticators. When implementing SAML validation we need a way to configure a trusted key, and passing the ServletContext seems to be about the simplest way to do this.
author Bernhard Herzog <bh@intevation.de>
date Wed, 08 May 2013 17:56:13 +0200
parents 172338b1407f
children a96350a1c160
comparison
equal deleted inserted replaced
5932:c7951390fd58 5933:1b939742629e
8 8
9 package org.dive4elements.river.client.server.auth.was; 9 package org.dive4elements.river.client.server.auth.was;
10 10
11 import java.io.IOException; 11 import java.io.IOException;
12 import java.security.GeneralSecurityException; 12 import java.security.GeneralSecurityException;
13 import javax.servlet.ServletContext;
13 14
14 import org.apache.http.HttpEntity; 15 import org.apache.http.HttpEntity;
15 import org.apache.http.HttpResponse; 16 import org.apache.http.HttpResponse;
16 import org.apache.http.StatusLine; 17 import org.apache.http.StatusLine;
17 import org.apache.http.client.HttpClient; 18 import org.apache.http.client.HttpClient;
30 @Override 31 @Override
31 public Authentication auth( 32 public Authentication auth(
32 String username, 33 String username,
33 String password, 34 String password,
34 String encoding, 35 String encoding,
35 Features features 36 Features features,
37 ServletContext context
36 ) throws 38 ) throws
37 AuthenticationException, 39 AuthenticationException,
38 IOException 40 IOException
39 { 41 {
40 try { 42 try {

http://dive4elements.wald.intevation.org