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 |
---|---|
Authenticated |
UsernamePasswordAuthenticationScheme.authenticate(Credentials credentials) |
Authenticated |
UserContext.authenticate(Credentials credentials)
Authenticate user with the provided credentials.
|
static Authenticated |
Context.authenticate(Credentials credentials) |
Authenticated |
AuthenticationScheme.authenticate(Credentials credentials) |
static void |
Context.authenticate(String username,
String password)
Deprecated.
as of 2.3.0, replaced by
Context.authenticate(Credentials)
Used to authenticate user within the context |
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 © 2024 OpenMRS Inc.. All rights reserved.