Package org.jboss.security.auth.spi

Examples of org.jboss.security.auth.spi.InputValidationException


      // we start with a validation using patterns.
      Matcher usernameMatcher = this.usernamePattern.matcher(username);
      Matcher passwordMatcher = this.passwordPattern.matcher(password);
      if (!usernameMatcher.matches() || !passwordMatcher.matches())
         throw new InputValidationException("Username or password does not adhere to the acceptable pattern");

      // now we proceed with a blacklist validation.
      if (matchesBlackList(username) || matchesBlackList(password))
         throw new InputValidationException("Username or password contains invalid tokens");
   }
View Full Code Here

TOP

Related Classes of org.jboss.security.auth.spi.InputValidationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.