4 * This is the base class for any authentication object.
8 * @copyright Copyright (C) 2007-2012 Rooftop Solutions. All rights reserved.
9 * @author Evert Pot (http://www.rooftopsolutions.nl/)
10 * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
12 interface Sabre_DAV_Auth_IBackend {
15 * Authenticates the user based on the current request.
17 * If authentication is successful, true must be returned.
18 * If authentication fails, an exception must be thrown.
20 * @param Sabre_DAV_Server $server
21 * @param string $realm
24 function authenticate(Sabre_DAV_Server $server,$realm);
27 * Returns information about the currently logged in username.
29 * If nobody is currently logged in, this method should return null.
33 function getCurrentUser();