portal.core.login
Interface LoginCallback

All Superinterfaces:
java.io.Serializable

public interface LoginCallback
extends java.io.Serializable

This interface is implemented by the framework engine and allows the login client to initiate a login procedure.

See also LoginClient.init(LoginCallback).

Since:
0.9
Author:
bavodr

Method Summary
 boolean login(java.lang.String username, java.lang.String password)
          Using this method, the login client can ask the framework to try a login using the configured security service.
 

Method Detail

login

public boolean login(java.lang.String username,
                     java.lang.String password)

Using this method, the login client can ask the framework to try a login using the configured security service. Note that the method does not throw any exceptions but will always return false when an error occured. True is only returned when the security service found a principal with the given username and when the passwords match.

Parameters:
username - the username of the principal
password - the password of the principal
Returns:
true when the username and password match, false in all other cases