comparison flys-client/src/main/java/de/intevation/flys/client/server/auth/Authentication.java @ 2968:3e0567e02577

Extend Authentication and Response to throw additional exceptions flys-client/trunk@4964 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Bjoern Ricks <bjoern.ricks@intevation.de>
date Fri, 13 Jul 2012 06:46:27 +0000
parents d7f76f197d89
children 98c7a46ec5ae
comparison
equal deleted inserted replaced
2967:ce07c6a1e96b 2968:3e0567e02577
1 package de.intevation.flys.client.server.auth; 1 package de.intevation.flys.client.server.auth;
2 2
3 import de.intevation.flys.client.server.auth.AuthenticationException;
3 import de.intevation.flys.client.server.auth.User; 4 import de.intevation.flys.client.server.auth.User;
5
6
4 /** Interface to represent user authentications 7 /** Interface to represent user authentications
5 */ 8 */
6 public interface Authentication { 9 public interface Authentication {
7 10
8 /** Returns true if the authentication was successfull 11 /** Returns true if the authentication was successfull
9 */ 12 */
10 public boolean isSuccess(); 13 public boolean isSuccess();
11 14
12 /** Returns a new User object 15 /** Returns a new User object
13 */ 16 */
14 public User getUser(); 17 public User getUser() throws AuthenticationException;
15 18
16 } 19 }

http://dive4elements.wald.intevation.org