blob: 5319409ff632f182a5104ed076728fec56d39ae4 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011 Laurent CARON
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Laurent CARON (laurent.caron at gmail dot com) - initial API and implementation
*******************************************************************************/
package org.mihalis.opal.login;
/**
* This interface describes a verifier for the LoginDialogWidget.
*/
public interface LoginDialogVerifier {
/**
* Check if the couple login/password is correct.
*
* @param login login entered by the user
* @param password password entered by the user
* @throws Exception if the couple login/password is wrong. The description
* of the exception contains the error message that is gonna be
* displayed. For instance, an implementation can throw the
* exception *
* <code>new Exception("Unable to connect to the LDAP Server")</code>
*/
void authenticate(String login, String password) throws Exception;
}