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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidLogs a successful login.static voidlogLoginFailure(CmsObject cms, String user) Logs a login failure.static voidLogs a successful logout.static voidlogPasswordChange(CmsObject cms, String user) Logs a password change.static voidlogPasswordChangeForRequestedReset(CmsObject cms, String user) Logs a password change originally requested through the 'reset password' button.static voidlogPasswordResetRequest(CmsObject cms, String user) Logs a password reset request.static voidlogSecondFactorAdded(CmsRequestContext requestContext, String name) Logs when a second factor was added.static voidlogSecondFactorInfoModified(CmsRequestContext requestContext, String name) Logs when a second factor was modified.static voidlogSecondFactorReset(CmsRequestContext requestContext, String name) Logs when a second factor was removed.static voidlogSetForceResetPassword(CmsObject cms, String user) Logs that the 'force reset password' status was set on a user.static voidlogSwitchUser(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
-