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

All Superinterfaces:
AuthorizationControl
All Known Implementing Classes:
AccessControlImpl

public interface AccessControl
extends AuthorizationControl

Access control combining authentication and authorization.

Author:
emueller

Method Summary
 AuthenticationInformation logIn(String username, String password, ClientVersionInfo clientVersionInfo)
          Log in with the given credentials.
 void logout(SessionId sessionId)
          Log out the session with the given ID.
 void setAuthenticationControl(AbstractAuthenticationControl modelAuthenticationControl)
          Sets the authentication control to be used.
 
Methods inherited from interface org.eclipse.emf.emfstore.internal.server.accesscontrol.AuthorizationControl
checkAccess, checkProjectAdminAccess, checkProjectAdminAccess, checkProjectAdminAccessForOrgUnit, checkProjectAdminAccessForOrgUnit, checkReadAccess, checkServerAdminAccess, checkSession, checkWriteAccess, resolveSessionById, resolveUser, resolveUser
 

Method Detail

logIn

AuthenticationInformation logIn(String username,
                                String password,
                                ClientVersionInfo clientVersionInfo)
                                throws AccessControlException
Log in with the given credentials.

Parameters:
username - the username as entered by the client
password - the password as entered by the client
clientVersionInfo - the version of the client
Returns:
an AuthenticationInformation holding information about the logged-in session
Throws:
AccessControlException - in case an error occurs during the login

logout

void logout(SessionId sessionId)
            throws AccessControlException
Log out the session with the given ID.

Parameters:
sessionId - the ID of the session to be logged out
Throws:
AccessControlException - in case logout fails

setAuthenticationControl

void setAuthenticationControl(AbstractAuthenticationControl modelAuthenticationControl)
Sets the authentication control to be used.

Parameters:
modelAuthenticationControl - the authentication control to be used


Copyright © 2015. All Rights Reserved.