Package org.opencms.security
Class CmsUserLog
java.lang.Object
org.opencms.security.CmsUserLog
Class with static methods for logging user-related operations in a centralized manner.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Logs a successful login.static void
logLoginFailure
(CmsObject cms, String user) Logs a login failure.static void
Logs a successful logout.static void
logPasswordChange
(CmsObject cms, String user) Logs a password change.static void
logPasswordChangeForRequestedReset
(CmsObject cms, String user) Logs a password change originally requested through the 'reset password' button.static void
logPasswordResetRequest
(CmsObject cms, String user) Logs a password reset request.static void
logSecondFactorAdded
(CmsRequestContext requestContext, String name) Logs when a second factor was added.static void
logSecondFactorInfoModified
(CmsRequestContext requestContext, String name) Logs when a second factor was modified.static void
logSecondFactorReset
(CmsRequestContext requestContext, String name) Logs when a second factor was removed.static void
logSetForceResetPassword
(CmsObject cms, String user) Logs that the 'force reset password' status was set on a user.static void
logSwitchUser
(CmsObject cms, String name) Logs a user switch.
-
Constructor Details
-
CmsUserLog
public CmsUserLog()
-
-
Method Details
-
logLogin
Logs a successful login.- Parameters:
cms
- the CMS contextuser
- the name of the user
-
logLoginFailure
Logs a login failure.- Parameters:
cms
- the CMS contextuser
- the name of the user
-
logLogout
Logs a successful logout.- Parameters:
cms
- the CMS context
-
logPasswordChange
Logs a password change.- Parameters:
cms
- the CMS contextuser
- the user name
-
logPasswordChangeForRequestedReset
Logs a password change originally requested through the 'reset password' button.- Parameters:
cms
- the CMS contextuser
- the user name
-
logPasswordResetRequest
Logs a password reset request.- Parameters:
cms
- the CMS contextuser
- the user name
-
logSecondFactorAdded
Logs when a second factor was added.- Parameters:
requestContext
- the request contextname
- the user name
-
logSecondFactorInfoModified
Logs when a second factor was modified.- Parameters:
requestContext
- the request contextname
- the user name
-
logSecondFactorReset
Logs when a second factor was removed.- Parameters:
requestContext
- the request contextname
- the user name
-
logSetForceResetPassword
Logs that the 'force reset password' status was set on a user.- Parameters:
cms
- the CMS contextuser
- the user name
-
logSwitchUser
Logs a user switch.- Parameters:
cms
- the current CMS contextname
- the name of the user to switch to
-