org.eclipse.emf.emfstore.internal.server.accesscontrol
Interface AuthenticationControl

All Known Implementing Classes:
AbstractAuthenticationControl, EMFModelAuthenticationVerifier, LDAPVerifier, SimplePropertyFileVerifier, VerifierChain

public interface AuthenticationControl

Controller for the Authentication of users.

Author:
koegel

Method Summary
 AuthenticationInformation logIn(ACUser resolvedUser, String username, String password, ClientVersionInfo clientVersionInfo)
          Tries to login the given user.
 void logout(SessionId sessionId)
          Logout/delete a session on the server.
 

Method Detail

logIn

AuthenticationInformation logIn(ACUser resolvedUser,
                                String username,
                                String password,
                                ClientVersionInfo clientVersionInfo)
                                throws AccessControlException
Tries to login the given user.

Parameters:
resolvedUser - the user instance as resolved by the user
username - the username as determined by the client
password - the password as entered by the client
clientVersionInfo - the version of the client
Returns:
an AuthenticationInformation instance holding information about the logged-in session
Throws:
AccessControlException - in case the login fails

logout

void logout(SessionId sessionId)
            throws AccessControlException
Logout/delete a session on the server.

Parameters:
sessionId - the id of the session to be logout
Throws:
AccessControlException - in case of failure on server


Copyright © 2015. All Rights Reserved.