org.eclipse.emf.emfstore.internal.server.accesscontrol.authentication.verifiers
Class AbstractAuthenticationControl

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.server.accesscontrol.authentication.verifiers.AbstractAuthenticationControl
All Implemented Interfaces:
AuthenticationControl
Direct Known Subclasses:
EMFModelAuthenticationVerifier, LDAPVerifier, SimplePropertyFileVerifier, VerifierChain

public abstract class AbstractAuthenticationControl
extends Object
implements AuthenticationControl

Abstract class for authentication.

Author:
wesendonk

Constructor Summary
AbstractAuthenticationControl()
          Default constructor.
 
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAuthenticationControl

public AbstractAuthenticationControl()
Default constructor.

Method Detail

logIn

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

Specified by:
logIn in interface AuthenticationControl
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

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

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


Copyright © 2015. All Rights Reserved.