Examples of AuthenticationFailedException


Examples of com.foundationdb.server.error.AuthenticationFailedException

        }
        finally {
            cleanup(conn, stmt);
        }
        if (user == null) {
            throw new AuthenticationFailedException("invalid username or password");
        }
        if (session != null) {
            session.put(SESSION_KEY, user);
        }
        if (monitor.getUserMonitor(user.getName()) == null) {
View Full Code Here

Examples of com.foundationdb.server.error.AuthenticationFailedException

        }
        finally {
            cleanup(conn, stmt);
        }
        if (user == null) {
            throw new AuthenticationFailedException("invalid username or password");
        }
        if (session != null) {
            session.put(SESSION_KEY, user);
        }
        if (monitor.getUserMonitor(user.getName()) == null) {
View Full Code Here

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

Examples of com.tensegrity.wpalo.client.exceptions.AuthenticationFailedException

      user.setSessionId(userSession.getSessionId());
      return user;
    } catch (org.palo.viewapi.exceptions.AuthenticationFailedException e) {
      e.printStackTrace();
      logger.error(e.getMessage(), e);
      throw new AuthenticationFailedException(e.getMessage(), e);
    }
  }
View Full Code Here

Examples of com.tensegrity.wpalo.client.exceptions.AuthenticationFailedException

      user.setSessionId(userSession.getSessionId());
      return user;
    } catch (org.palo.viewapi.exceptions.AuthenticationFailedException e) {
      e.printStackTrace();
      logger.error(e.getMessage(), e);
      throw new AuthenticationFailedException(e.getMessage(), e);
    }
  }
View Full Code Here

Examples of com.yourpackagename.framework.exception.auth.AuthenticationFailedException

                    request.getSession(true).setAttribute(Key.userInSession, user);
                    model.addAttribute("ls", true);
                    return Key.redirect + Route.dashboard;
                } else {
                    log.info("User Authentication Failed: " + user.getUserName());
                    throw new AuthenticationFailedException(msg.aFailed, msg.aFailedCode);
                }
            } else {
                throw new AuthCredentialsMissingException(msg.aParamMissing, msg.aParamMissingCode);
            }
        } catch (Exception e) {
View Full Code Here

Examples of com.yourpackagename.framework.exception.auth.AuthenticationFailedException

            // Store the attribute to be referenced later in the API code
            request.getSession(true).setAttribute(Key.userInSession, user);
        } else {
            log.info("User Authentication Failed: " + user.getUserName());
            throw new AuthenticationFailedException(msg.aFailed);
        }
    }
View Full Code Here

Examples of com.yourpackagename.framework.exception.auth.AuthenticationFailedException

        if (user.getPassWord().equals(User.hashPassword(userPass[1]))) {
            log.info("Authenticated: " + user.getUserName());
        } else {
            log.info("User Authentication Failed: " + user.getUserName());
            throw new AuthenticationFailedException(msg.aFailed);
        }
    }
View Full Code Here

Examples of javax.mail.AuthenticationFailedException

            // authenticate with the server, if necessary
            if (!processAuthentication()) {
                if (debug) {
                    debugOut("User authentication failure");
                }
                throw new AuthenticationFailedException("Error authenticating with server");
            }
        } catch (IOException e) {
            if (debug) {
                debugOut("I/O exception establishing connection", e);
            }
View Full Code Here

Examples of javax.mail.AuthenticationFailedException

            // authenticate with the server, if necessary
            if (!processAuthentication()) {
                if (debug) {
                    debugOut("User authentication failure");
                }
                throw new AuthenticationFailedException("Error authenticating with server");
            }
        } catch (IOException e) {
            if (debug) {
                debugOut("I/O exception establishing connection", e);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.