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

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.server.accesscontrol.authentication.verifiers.PasswordVerifier
      extended by org.eclipse.emf.emfstore.internal.server.accesscontrol.authentication.verifiers.UserVerifier
All Implemented Interfaces:
ESUserVerifier
Direct Known Subclasses:
EMFModelUserVerifier, LDAPUserVerifier, SimplePropertyFileUserVerifier, UserVerifierChain

public abstract class UserVerifier
extends PasswordVerifier

Author:
emueller

Constructor Summary
UserVerifier(ESOrgUnitProvider orgUnitProvider)
          Default constructor.
 
Method Summary
 ESAuthenticationInformation verifyUser(String username, String password, ESClientVersionInfo clientVersionInfo)
          Tries to login the given user.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.emfstore.server.auth.ESUserVerifier
init
 

Constructor Detail

UserVerifier

public UserVerifier(ESOrgUnitProvider orgUnitProvider)
Default constructor.

Parameters:
orgUnitProvider - an ESOrgUnitProvider for finding users
Method Detail

verifyUser

public ESAuthenticationInformation verifyUser(String username,
                                              String password,
                                              ESClientVersionInfo clientVersionInfo)
                                       throws AccessControlException
Tries to login the given user.

Parameters:
username - the user name 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


Copyright © 2016. All Rights Reserved.