| Package | Description | 
|---|---|
| org.openmrs.api.context | 
 This package describes the context framework through which
authentication is performed and services provided for the OpenMRS system. 
 | 
| org.openmrs.api.db | 
 
OpenMRS database layer interfaces. 
 | 
| org.openmrs.api.db.hibernate | 
 Resources for Hibernate ORM. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
Context.authenticate(String username,
            String password)
Used to authenticate user within the context 
 | 
User | 
UserContext.authenticate(String username,
            String password,
            ContextDAO contextDAO)
Authenticate the user to this UserContext. 
 | 
User | 
UserContext.becomeUser(String systemId)
Change current authentication to become another user. 
 | 
static void | 
Context.becomeUser(String systemId)
Become a different user. 
 | 
static void | 
Context.requirePrivilege(String privilege)
Throws an exception if the currently authenticated user does not have the
 specified privilege. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
User | 
ContextDAO.authenticate(String username,
            String password)
Authenticate user with the given username and password. 
 | 
User | 
ContextDAO.getUserByUuid(String uuid)
Gets a user given the uuid. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
User | 
HibernateContextDAO.authenticate(String login,
            String password)  | 
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.