Class DefaultUsernameValidator
- java.lang.Object
-
- com.broadleafcommerce.auth.user.validation.DefaultUsernameValidator
-
- All Implemented Interfaces:
UsernameValidator
@ConfigurationProperties("broadleaf.auth.username.validator") public class DefaultUsernameValidator extends Object implements UsernameValidator
- Author:
- Nathan Moore (nathanmoore).
-
-
Constructor Summary
Constructors Constructor Description DefaultUsernameValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pattern
getUsernamePattern()
boolean
isValid(String username)
void
setRegex(String regex)
-
-
-
Method Detail
-
setRegex
public void setRegex(String regex)
-
getUsernamePattern
public Pattern getUsernamePattern()
- Specified by:
getUsernamePattern
in interfaceUsernameValidator
-
isValid
public boolean isValid(String username)
- Specified by:
isValid
in interfaceUsernameValidator
-
-