Package org.beangle.security.monitor

Examples of org.beangle.security.monitor.BadCredentialsException


  public Authentication authenticate(Authentication auth) throws AuthenticationException {
    logger.debug("Authentication using {}", getClass());
    User user = attachToUser(auth);
    if (!passwordEncoder.isPasswordValid(user.getPassword(), (String) auth.getCredentials())) {
      throw new BadCredentialsException(Authentication.ERROR_PASSWORD);
    }
    return auth;
  }
View Full Code Here

TOP

Related Classes of org.beangle.security.monitor.BadCredentialsException

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.