Examples of ChangePassword


Examples of com.cloudseal.rest.jaxb.ChangePassword

    @Override
    public void changePassword(String username, String newPassword) {
        try {
            StringBuilder builder = new StringBuilder("/rest/change_password/");
            builder.append(username);
            ChangePassword changePassword = new ChangePassword();
            changePassword.setNewPassword(newPassword);
            restClient.put(builder.toString(), changePassword);
        } catch (RestException ex) {
            if (ex.getCause() != null && ex.getCause().getMessage().contains("USER_NOT_FOUND")) {
                throw new UserNotFoundException(ex.getCause().getMessage());
            }
View Full Code Here

Examples of com.cloudseal.rest.jaxb.ChangePassword

        }

        try {
            StringBuilder builder = new StringBuilder("/rest/change_password/");
            builder.append(username);
            ChangePassword changePassword = new ChangePassword();
            changePassword.setCurrentPassword(currentPassword);
            changePassword.setNewPassword(newPassword);
            restClient.put(builder.toString(), changePassword);
        } catch (RestException ex) {
            if (ex.getCause() != null && ex.getCause().getMessage().contains("USER_NOT_FOUND")) {
                throw new UserNotFoundException(ex.getCause().getMessage());
            }
View Full Code Here

Examples of com.woorea.openstack.nova.model.ServerAction.ChangePassword

    }

  }
 
  public ChangePasswordAction changePassword(String serverId, String adminPass) {
      ChangePassword changePassword = new ChangePassword();
      changePassword.setAdminPass(adminPass);
      return new ChangePasswordAction(serverId, changePassword);
    }
View Full Code Here

Examples of l2p.gameserver.loginservercon.gspackets.ChangePassword

    if(!Util.isMatchingRegexp(parts[1], Config.APASSWD_TEMPLATE))
    {
      show(new CustomMessage("scripts.commands.user.password.IncorrectInput", activeChar), activeChar);
      return false;
    }
    LSConnection.getInstance().sendPacket(new ChangePassword(activeChar.getAccountName(), parts[0], parts[1]));
    return true;
  }
View Full Code Here

Examples of l2p.gameserver.loginservercon.gspackets.ChangePassword

      DatabaseUtils.closeDatabaseCSR(con, statement, rset);
    }
    try
    {
      mysql.setEx(L2DatabaseFactory.getInstanceLogin(), "UPDATE `accounts` SET `email`=?,`activated`='1' WHERE `login`=?", email1, player.getAccountName());
      LSConnection.getInstance().sendPacket(new ChangePassword(player.getAccountName(), oldpass, newpass1));
    }
    catch(SQLException e)
    {
      sendMessage(new CustomMessage("scripts.services.Activation.SomethingIsWrongTryAgain", player), player);
      e.printStackTrace();
View Full Code Here

Examples of l2p.loginserver.gameservercon.gspackets.ChangePassword

          break;
        case 0x07:
          packet = new BanIP(data, gameserver);
          break;
        case 0x08:
          packet = new ChangePassword(data, gameserver);
          break;
        case 0x09:
          packet = new Restart(data, gameserver);
          break;
        case 0x0a:
View Full Code Here

Examples of lineage2.gameserver.network.loginservercon.gspackets.ChangePassword

    if ((parts[1].length() < 5) || (parts[1].length() > 20))
    {
      show(new CustomMessage("scripts.commands.user.password.IncorrectSize", activeChar), activeChar);
      return false;
    }
    LoginServerCommunication.getInstance().sendPacket(new ChangePassword(activeChar.getAccountName(), parts[0], parts[1], "null"));
    show(new CustomMessage("scripts.commands.user.password.ResultTrue", activeChar), activeChar);
    return true;
  }
View Full Code Here

Examples of lineage2.loginserver.gameservercon.gspackets.ChangePassword

          break;
        case 0x05:
          packet = new SetAccountInfo();
          break;
        case 0x08:
          packet = new ChangePassword();
          break;
        case 0x10:
          packet = new BonusRequest();
          break;
        case 0x11:
View Full Code Here

Examples of org.apache.directory.server.kerberos.shared.store.operations.ChangePassword

    }


    public String changePassword( KerberosPrincipal principal, String newPassword ) throws Exception
    {
        return (String) new ChangePassword( principal, newPassword ).execute( session, searchBaseDn );
    }
View Full Code Here

Examples of org.apache.directory.server.kerberos.shared.store.operations.ChangePassword

    public String changePassword( KerberosPrincipal principal, String newPassword ) throws Exception
    {
        try
        {
            return ( String ) execute( directoryService.getSession(), new ChangePassword( principal, newPassword ) );
        }
        catch ( NamingException ne )
        {
            String message = I18n.err( I18n.ERR_625, principal.getRealm() );
            throw new ServiceConfigurationException( message, ne );
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.