blob: 6c8b69b089b8d8b61c5630f0c7e7d9f7968c65bb (
plain) (
tree)
|
|
package org.openslx.dozmod.authentication;
import org.openslx.dozmod.authentication.ShibbolethEcp.ReturnCode;
/**
* @author Jonathan Bauer
*
*/
public interface Authenticator {
/**
* Callback interface to the login to be called after a login
* Note that this will be called after every login, independent
* of the success of the operation. This way the GUI can show a
* corresponding message to the user.
*/
interface AuthenticatorCallback {
void postLogin(ReturnCode returnCode, Throwable t);
}
/**
* Definition of the generic login method.
*
* @param username The username as String
* @param password The password as String
* @param callback The callback function to be called after the login
* @throws Exception
*/
void login(String username, String password, AuthenticatorCallback callback)
throws Exception;
}
|