Class PasswordsValidator

  • All Implemented Interfaces:
    org.springframework.validation.Validator

    @Component
    public class PasswordsValidator
    extends Object
    implements org.springframework.validation.Validator
    Validates that given passwords are equals.
    • Constructor Detail

      • PasswordsValidator

        public PasswordsValidator​(org.springframework.context.MessageSource messageSource)
    • Method Detail

      • containsSpecialChar

        protected boolean containsSpecialChar​(String password)
      • supports

        public boolean supports​(Class<?> clazz)
        Specified by:
        supports in interface org.springframework.validation.Validator
      • validate

        public void validate​(Object target,
                             org.springframework.validation.Errors errors)
        Specified by:
        validate in interface org.springframework.validation.Validator