Package com.jdroid.javaweb.exception

Examples of com.jdroid.javaweb.exception.InvalidAuthenticationException


   * @param password string to be verified
   * @throws InvalidAuthenticationException in case verification fails
   */
  public void verify(String password) throws InvalidAuthenticationException {
    if (!hashedPassword.equals(getHasher().hash(password))) {
      throw new InvalidAuthenticationException(CommonErrorCode.INVALID_CREDENTIALS);
    }
  }
View Full Code Here

TOP

Related Classes of com.jdroid.javaweb.exception.InvalidAuthenticationException

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.