Package com.sk89q.skmcl.session

Examples of com.sk89q.skmcl.session.YggdrasilSession$ErrorResponse


   * contents.
   * @param response the xml response content.
   */
  private void processResponse(final String response) {
    try {
      ErrorResponse errorResponse =
        (ErrorResponse) CartUtils.unmarshal(response).getValue();
      this.responseMessage = errorResponse.getErrorMessage();
    } catch (Exception e) {
      // In case the message cannot be parsed, assign a default value to it.
      //log.warn("Could not parse message", e);
      log.warn("Could not parse message");
      log.warn("Using default value for response message");
View Full Code Here


            this.password = password;
        }

        @Override
        public Identity call() throws AuthenticationException, IOException, InterruptedException {
            YggdrasilSession session = new YggdrasilSession(account.getId());
            session.setPassword(password);
            session.verify();

            List<Identity> identities = session.getIdentities();

            // The list of identities (profiles in Mojang terms) corresponds to whether the account
            // owns the game, so we need to check that
            if (identities.size() > 0) {
                account.setIdentities(identities);
View Full Code Here

TOP

Related Classes of com.sk89q.skmcl.session.YggdrasilSession$ErrorResponse

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.