1 package org.snipsnap.user; 2 3 /* 4 * This file is part of "SnipSnap Wiki/Weblog". 5 * 6 * Copyright (c) 2002-2003 Stephan J. Schmidt, Matthias L. Jugel 7 * All Rights Reserved. 8 * 9 * Please visit http://snipsnap.org/ for updates and contact. 10 * 11 * --LICENSE NOTICE-- 12 * This program is free software; you can redistribute it and/or 13 * modify it under the terms of the GNU General Public License 14 * as published by the Free SoftSware Foundation; either version 2 15 * of the License, or (at your option) any later version. 16 * 17 * This program is distributed in the hope that it will be useful, 18 * but WITHOUT ANY WARRANTY; without even the implied warranty of 19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 * GNU General Public License for more details. 21 * 22 * You should have received a copy of the GNU General Public License 23 * along with this program; if not, write to the Free Software 24 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 25 * --LICENSE NOTICE-- 26 */ 27 28 public interface AuthenticationService { 29 public final static boolean ENCRYPTED = true; 30 31 public User authenticate(String login, String passwd, boolean encrypted); 32 public User authenticate(String login, String passwd); 33 public boolean isAuthenticated(User user); 34 } 35