Package com.mustafaiev.tair.exception

Examples of com.mustafaiev.tair.exception.AuthenticationFailedException


      final boolean isValidPassword = this.payerService.checkPassword(
          pass, payer.getPassword());
      if (isValidPassword) {
        systemAuthentication = doAuthenticate(authentication, payer);
      } else {
        throw new AuthenticationFailedException(
            "cts.error.auth.password.not.valid");
      }
    } catch (final DataNotRetrievedException e) {
      LOGGER.error(e.getLocalizedMessage());
      throw new AuthenticationFailedException(
          "cts.error.auth.user.not.found");
    }
    return systemAuthentication;
  }
View Full Code Here

TOP

Related Classes of com.mustafaiev.tair.exception.AuthenticationFailedException

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.