Package org.aavso.tools.vstar.exception

Examples of org.aavso.tools.vstar.exception.AuthenticationError


            retrieveObserverCode(userResults.getInt("uid"));
          }
        }
      } catch (SQLException e) {
        throw new AuthenticationError(e.getLocalizedMessage());
      }
    }

    return authenticated;
  }
View Full Code Here


              authenticators, username, password);

          task.execute();
          authenticated = task.get();
        } catch (ExecutionException e) {
          throw new AuthenticationError(e.getLocalizedMessage());
        } catch (InterruptedException e) {
          // Nothing to do.
        } finally {
          Mediator.getUI().setCursor(null);
        }

        if (!authenticated) {
          retries--;
        }
      }
    }

    Mediator.getUI().getStatusPane().setMessage("");

    if (cancelled) {
      throw new CancellationException();
    }

    if (!authenticated) {
      throw new AuthenticationError("Unable to authenticate.");
    }
  }
View Full Code Here

        Authenticator.getInstance().authenticate();

        if (!obSourcePlugin
            .additionalAuthenticationSatisfied(ResourceAccessor
                .getLoginInfo())) {
          throw new AuthenticationError(
              "Plug-in authentication failed");
        }
      }

      createObservationArtefacts();
View Full Code Here

        authenticated = true;
        ResourceAccessor.getLoginInfo().setUserName(username);
        ResourceAccessor.getLoginInfo().setType(getLoginType());
      } else {
        String message = "Authentication failed";
        throw new AuthenticationError(message);
      }

      processResponse(conn);

    } catch (MalformedURLException e) {
View Full Code Here

            retrieveUserInfo(username);
          }
        }
      } catch (SQLException e) {
        throw new AuthenticationError(e.getLocalizedMessage());
      }
    }

    return authenticated;
  }
View Full Code Here

TOP

Related Classes of org.aavso.tools.vstar.exception.AuthenticationError

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.