teichmann@5861: /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde teichmann@5861: * Software engineering by Intevation GmbH teichmann@5861: * teichmann@5993: * This file is Free Software under the GNU AGPL (>=v3) teichmann@5861: * and comes with ABSOLUTELY NO WARRANTY! Check out the teichmann@5993: * documentation coming with Dive4Elements River for details. teichmann@5861: */ teichmann@5861: teichmann@5835: package org.dive4elements.river.client.server.auth; bjoern@2956: bjoern@2956: /** Interface to represent user authentications bjoern@2956: */ bjoern@2956: public interface Authentication { bjoern@2956: bjoern@2956: /** Returns true if the authentication was successfull bjoern@2956: */ bjoern@2956: public boolean isSuccess(); bjoern@2956: bjoern@2956: /** Returns a new User object bjoern@2956: */ bjoern@2968: public User getUser() throws AuthenticationException; bjoern@2956: bjoern@2956: }