Package org.opencms.security.twofactor
Class CmsTwoFactorAuthenticationUserPolicy.Rule
- java.lang.Object
-
- org.opencms.security.twofactor.CmsTwoFactorAuthenticationUserPolicy.Rule
-
- Enclosing class:
- CmsTwoFactorAuthenticationUserPolicy
public static class CmsTwoFactorAuthenticationUserPolicy.Rule extends java.lang.Object
Represents a single rule configured for a policy.
-
-
Constructor Summary
Constructors Constructor Description Rule(CmsTwoFactorAuthenticationUserPolicy.CheckType type, java.lang.String value)
Creates a new rule.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.regex.Pattern
getPattern()
Gets the pattern (only used for check type 'pattern').CmsTwoFactorAuthenticationUserPolicy.CheckType
getType()
Gets the match type, which determines what the name is compared to.java.lang.String
getValue()
Gets the name that is used for comparison.
-
-
-
Constructor Detail
-
Rule
public Rule(CmsTwoFactorAuthenticationUserPolicy.CheckType type, java.lang.String value)
Creates a new rule.- Parameters:
type
- the rule typevalue
- the rule value
-
-
Method Detail
-
getPattern
public java.util.regex.Pattern getPattern()
Gets the pattern (only used for check type 'pattern').- Returns:
- pattern
-
getType
public CmsTwoFactorAuthenticationUserPolicy.CheckType getType()
Gets the match type, which determines what the name is compared to.- Returns:
- the match type
-
getValue
public java.lang.String getValue()
Gets the name that is used for comparison.- Returns:
- the name
-
-