Uses of Class
org.opencms.security.twofactor.CmsSecondFactorInfo
Package
Description
Low-level database connection and access functionality.
This important package provides the methods to access the OpenCms VFS repository with the permissions
of an authenticated user.
Contains the user interface components for the Vaadin-based login dialog.
-
Uses of CmsSecondFactorInfo in org.opencms.db
Modifier and TypeMethodDescriptionCmsDriverManager.loginUser
(CmsDbContext dbc, String userName, String password, CmsSecondFactorInfo secondFactorInfo, String remoteAddress, CmsDriverManager.LoginUserMode mode) Attempts to authenticate a user into OpenCms with the given password.CmsSecurityManager.loginUser
(CmsRequestContext context, String username, String password, CmsSecondFactorInfo code, String remoteAddress) Attempts to authenticate a user into OpenCms with the given password.void
CmsDriverManager.resetPassword
(CmsDbContext dbc, String username, String oldPassword, CmsSecondFactorInfo secondFactor, String newPassword) Resets the password for a specified user.void
CmsSecurityManager.resetPassword
(CmsRequestContext context, String username, String oldPassword, CmsSecondFactorInfo secondFactor, String newPassword) Resets the password for a specified user. -
Uses of CmsSecondFactorInfo in org.opencms.file
Modifier and TypeMethodDescriptionCmsObject.loginUser
(String username, String password, CmsSecondFactorInfo code) Logs in the user.CmsObject.loginUser
(String username, String password, CmsSecondFactorInfo code, String remoteAddress) Logs a user with a given ip address into the Cms, if the password is correct.void
CmsObject.setPassword
(String username, String oldPassword, CmsSecondFactorInfo secondFactor, String newPassword) Sets the password for a specified user. -
Uses of CmsSecondFactorInfo in org.opencms.security.twofactor
Modifier and TypeMethodDescriptionboolean
CmsTwoFactorAuthenticationHandler.setUpAndVerifySecondFactor
(CmsUser newUser, CmsSecondFactorInfo code) Sets up the second factor for the given user, and immediately verifies it with the authentication code given.boolean
CmsTwoFactorAuthenticationHandler.verifySecondFactor
(CmsUser user, CmsSecondFactorInfo secondFactorInfo) Verifies the second factor information for a user.boolean
CmsTwoFactorAuthenticationHandler.verifySecondFactorSetup
(CmsSecondFactorInfo secondFactorInfo) Verifies that the verification code is correct for a secret. -
Uses of CmsSecondFactorInfo in org.opencms.ui.login
Modifier and TypeMethodDescriptionCmsLoginController.LoginContext.getSecondFactorInfo()
The second factor information for 2FA.Modifier and TypeMethodDescriptionvoid
CmsLoginController.LoginContext.setSecondFactorInfo
(CmsSecondFactorInfo secondFactorInfo) Sets the second factor information for 2FA.Modifier and TypeMethodDescriptionprotected void
CmsChangePasswordDialog.maybeCheckSecondFactor
(Consumer<CmsSecondFactorInfo> handler) Opens the 2FA verification code dialog for the user if necessary, and passes the code obtained from the dialog to the handler object passed as a parameter.