Package org.opencms.security.twofactor
Class CmsTwoFactorAuthenticationUserPolicy.Rule
java.lang.Object
org.opencms.security.twofactor.CmsTwoFactorAuthenticationUserPolicy.Rule
- Enclosing class:
- CmsTwoFactorAuthenticationUserPolicy
Represents a single rule configured for a policy.
-
Constructor Summary
ConstructorDescriptionRule
(CmsTwoFactorAuthenticationUserPolicy.CheckType type, String value) Creates a new rule. -
Method Summary
-
Constructor Details
-
Rule
Creates a new rule.- Parameters:
type
- the rule typevalue
- the rule value
-
-
Method Details
-
getPattern
Gets the pattern (only used for check type 'pattern').- Returns:
- pattern
-
getType
Gets the match type, which determines what the name is compared to.- Returns:
- the match type
-
getValue
Gets the name that is used for comparison.- Returns:
- the name
-