Package org.opencms.security.twofactor
Class CmsTwoFactorAuthenticationUserPolicy.UserCheckContext
java.lang.Object
org.opencms.security.twofactor.CmsTwoFactorAuthenticationUserPolicy.UserCheckContext
- Enclosing class:
- CmsTwoFactorAuthenticationUserPolicy
A context object used to keep user-related data around which may be needed by multiple rules, so we only need read it once
(e.g. the list of groups of a user).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the set of names of the groups the user belongs to.getUser()
Gets the user.
-
Constructor Details
-
UserCheckContext
Creates a new instance.- Parameters:
cms
- the CMS contextuser
- the user
-
-
Method Details
-
getGroupNames
Gets the set of names of the groups the user belongs to.- Returns:
- the set of group names
- Throws:
CmsException
- if initializing the groups fails
-
getUser
Gets the user.- Returns:
- the user
-