Uses of Class
org.opencms.security.twofactor.CmsSecondFactorInfo
-
Packages that use CmsSecondFactorInfo Package Description org.opencms.db Low-level database connection and access functionality.org.opencms.file This important package provides the methods to access the OpenCms VFS repository with the permissions of an authenticated user.org.opencms.security.twofactor org.opencms.ui.login Contains the user interface components for the Vaadin-based login dialog. -
-
Uses of CmsSecondFactorInfo in org.opencms.db
Methods in org.opencms.db with parameters of type CmsSecondFactorInfo Modifier and Type Method Description CmsUser
CmsDriverManager. loginUser(CmsDbContext dbc, java.lang.String userName, java.lang.String password, CmsSecondFactorInfo secondFactorInfo, java.lang.String remoteAddress, CmsDriverManager.LoginUserMode mode)
Attempts to authenticate a user into OpenCms with the given password.CmsUser
CmsSecurityManager. loginUser(CmsRequestContext context, java.lang.String username, java.lang.String password, CmsSecondFactorInfo code, java.lang.String remoteAddress)
Attempts to authenticate a user into OpenCms with the given password.void
CmsDriverManager. resetPassword(CmsDbContext dbc, java.lang.String username, java.lang.String oldPassword, CmsSecondFactorInfo secondFactor, java.lang.String newPassword)
Resets the password for a specified user.void
CmsSecurityManager. resetPassword(CmsRequestContext context, java.lang.String username, java.lang.String oldPassword, CmsSecondFactorInfo secondFactor, java.lang.String newPassword)
Resets the password for a specified user. -
Uses of CmsSecondFactorInfo in org.opencms.file
Methods in org.opencms.file with parameters of type CmsSecondFactorInfo Modifier and Type Method Description java.lang.String
CmsObject. loginUser(java.lang.String username, java.lang.String password, CmsSecondFactorInfo code)
Logs in the user.java.lang.String
CmsObject. loginUser(java.lang.String username, java.lang.String password, CmsSecondFactorInfo code, java.lang.String remoteAddress)
Logs a user with a given ip address into the Cms, if the password is correct.void
CmsObject. setPassword(java.lang.String username, java.lang.String oldPassword, CmsSecondFactorInfo secondFactor, java.lang.String newPassword)
Sets the password for a specified user. -
Uses of CmsSecondFactorInfo in org.opencms.security.twofactor
Methods in org.opencms.security.twofactor with parameters of type CmsSecondFactorInfo Modifier and Type Method Description boolean
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
Methods in org.opencms.ui.login that return CmsSecondFactorInfo Modifier and Type Method Description CmsSecondFactorInfo
CmsLoginController.LoginContext. getSecondFactorInfo()
The second factor information for 2FA.Methods in org.opencms.ui.login with parameters of type CmsSecondFactorInfo Modifier and Type Method Description void
CmsLoginController.LoginContext. setSecondFactorInfo(CmsSecondFactorInfo secondFactorInfo)
Sets the second factor information for 2FA.Method parameters in org.opencms.ui.login with type arguments of type CmsSecondFactorInfo Modifier and Type Method Description protected void
CmsChangePasswordDialog. maybeCheckSecondFactor(java.util.function.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.
-