Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/server/auth/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 | ea9eef426962 |
comparison
equal
deleted
inserted
replaced
5932:c7951390fd58 | 5933:1b939742629e |
---|---|
8 | 8 |
9 package org.dive4elements.river.client.server.auth; | 9 package org.dive4elements.river.client.server.auth; |
10 | 10 |
11 import java.io.IOException; | 11 import java.io.IOException; |
12 | 12 |
13 import javax.servlet.ServletContext; | |
14 | |
13 import org.dive4elements.river.client.server.features.Features; | 15 import org.dive4elements.river.client.server.features.Features; |
16 | |
14 | 17 |
15 public interface Authenticator { | 18 public interface Authenticator { |
16 | 19 |
17 public Authentication auth(String username, String password, String encoding, Features features) | 20 public Authentication auth(String username, String password, |
21 String encoding, Features features, | |
22 ServletContext context) | |
18 throws AuthenticationException, IOException; | 23 throws AuthenticationException, IOException; |
19 | 24 |
20 } | 25 } |