Class PasswordValidatorProperties
- java.lang.Object
-
- com.broadleafcommerce.auth.user.validation.autoconfigure.PasswordValidatorProperties
-
@ConfigurationProperties("broadleaf.auth.password.validation") public class PasswordValidatorProperties extends Object
Any of the validations that use regex may be "disabled" by changing the regex to match anything:
^.*$
or nothing:^$
(e.g., for whitespace or repeated characters)- Author:
- Phillip Verheyden (phillipuniverse)
-
-
Constructor Summary
Constructors Constructor Description PasswordValidatorProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
String
getCustomPattern()
Extension point for activating additional patterns that must conformString
getDigitPattern()
Password must include at least 1 number (e.g., 1, 2, 3)String
getLongPattern()
Password must be less than 255 charactersString
getLowerPattern()
Password must include at least 1 lowercase character (e.g., a, b, c)String
getRepeatedPattern()
Password cannot contain any 3 sequentially repeated characters (e.g., 111, aaa, ---)String
getShortPattern()
Password must be at least 8 charactersString
getSpecialPattern()
Password must include at least 1 special character (e.g., !, $, &)String
getUpperPattern()
Password must include at least 1 uppercase character (e.g., A, B, C)String
getWhitespacePattern()
Password cannot contain any whitespace charactersint
hashCode()
void
setCustomPattern(String customPattern)
Extension point for activating additional patterns that must conformvoid
setDigitPattern(String digitPattern)
Password must include at least 1 number (e.g., 1, 2, 3)void
setLongPattern(String longPattern)
Password must be less than 255 charactersvoid
setLowerPattern(String lowerPattern)
Password must include at least 1 lowercase character (e.g., a, b, c)void
setRepeatedPattern(String repeatedPattern)
Password cannot contain any 3 sequentially repeated characters (e.g., 111, aaa, ---)void
setShortPattern(String shortPattern)
Password must be at least 8 charactersvoid
setSpecialPattern(String specialPattern)
Password must include at least 1 special character (e.g., !, $, &)void
setUpperPattern(String upperPattern)
Password must include at least 1 uppercase character (e.g., A, B, C)void
setWhitespacePattern(String whitespacePattern)
Password cannot contain any whitespace charactersString
toString()
-
-
-
Method Detail
-
getShortPattern
public String getShortPattern()
Password must be at least 8 characters
-
getLongPattern
public String getLongPattern()
Password must be less than 255 characters
-
getUpperPattern
public String getUpperPattern()
Password must include at least 1 uppercase character (e.g., A, B, C)
-
getLowerPattern
public String getLowerPattern()
Password must include at least 1 lowercase character (e.g., a, b, c)
-
getDigitPattern
public String getDigitPattern()
Password must include at least 1 number (e.g., 1, 2, 3)
-
getSpecialPattern
public String getSpecialPattern()
Password must include at least 1 special character (e.g., !, $, &)
-
getWhitespacePattern
public String getWhitespacePattern()
Password cannot contain any whitespace characters
-
getRepeatedPattern
public String getRepeatedPattern()
Password cannot contain any 3 sequentially repeated characters (e.g., 111, aaa, ---)
-
getCustomPattern
public String getCustomPattern()
Extension point for activating additional patterns that must conform
-
setShortPattern
public void setShortPattern(String shortPattern)
Password must be at least 8 characters
-
setLongPattern
public void setLongPattern(String longPattern)
Password must be less than 255 characters
-
setUpperPattern
public void setUpperPattern(String upperPattern)
Password must include at least 1 uppercase character (e.g., A, B, C)
-
setLowerPattern
public void setLowerPattern(String lowerPattern)
Password must include at least 1 lowercase character (e.g., a, b, c)
-
setDigitPattern
public void setDigitPattern(String digitPattern)
Password must include at least 1 number (e.g., 1, 2, 3)
-
setSpecialPattern
public void setSpecialPattern(String specialPattern)
Password must include at least 1 special character (e.g., !, $, &)
-
setWhitespacePattern
public void setWhitespacePattern(String whitespacePattern)
Password cannot contain any whitespace characters
-
setRepeatedPattern
public void setRepeatedPattern(String repeatedPattern)
Password cannot contain any 3 sequentially repeated characters (e.g., 111, aaa, ---)
-
setCustomPattern
public void setCustomPattern(String customPattern)
Extension point for activating additional patterns that must conform
-
canEqual
protected boolean canEqual(Object other)
-
-