Source code: com/xpn/xwiki/user/api/XWikiAuthService.java
1 /**
2 * ===================================================================
3 *
4 * Copyright (c) 2003,2004 Ludovic Dubost, All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details, published at
15 * http://www.gnu.org/copyleft/lesser.html or in lesser.txt in the
16 * root folder of this distribution.
17
18 * Created by
19 * User: Ludovic Dubost
20 * Date: 4 juin 2004
21 * Time: 08:28:33
22 */
23 package com.xpn.xwiki.user.api;
24
25 import com.xpn.xwiki.XWikiContext;
26 import com.xpn.xwiki.XWikiException;
27
28 import java.security.Principal;
29
30 public interface XWikiAuthService {
31 public XWikiUser checkAuth(XWikiContext context) throws XWikiException;
32 public void showLogin(XWikiContext context) throws XWikiException;
33 public Principal authenticate(String username, String password, XWikiContext context) throws XWikiException;
34 }