Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/server/auth/Authenticator.java @ 3485:71ba3cf3ec5e
Refactor Authentication to allow to pass the Freatures to the user class
The Features class can be used to receive the allowed features for the users
roles.
flys-client/trunk@5183 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Bjoern Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Fri, 10 Aug 2012 07:06:18 +0000 |
parents | 5ba0a6efdf3b |
children |
comparison
equal
deleted
inserted
replaced
3484:83845aa322ea | 3485:71ba3cf3ec5e |
---|---|
1 package de.intevation.flys.client.server.auth; | 1 package de.intevation.flys.client.server.auth; |
2 | 2 |
3 import java.io.IOException; | 3 import java.io.IOException; |
4 | 4 |
5 import de.intevation.flys.client.server.features.Features; | |
6 | |
5 public interface Authenticator { | 7 public interface Authenticator { |
6 | 8 |
7 public Authentication auth(String username, String password, String encoding) | 9 public Authentication auth(String username, String password, String encoding, Features features) |
8 throws AuthenticationException, IOException; | 10 throws AuthenticationException, IOException; |
9 | 11 |
10 } | 12 } |