Examples of changePassword()


Examples of com.adito.security.UserDatabase.changePassword()

            /*
             * Set the super user password
             */
            if (udb.supportsPasswordChange() && !superUserPassword.equals("")) {
                udb.changePassword(superUser, "", superUserPassword, false);
                l.add(new WizardActionStatus(WizardActionStatus.COMPLETED_OK, "installation.install.status.superUserPasswordSet"));
            }
        } catch (PasswordPolicyViolationException e) {
            log.error("Failed to configure super user.", e);
            l.add(new WizardActionStatus(WizardActionStatus.COMPLETED_WITH_ERRORS,
View Full Code Here

Examples of com.adito.security.UserDatabase.changePassword()

    }

    private static void createSuperUser() throws Exception {
        UserDatabase userDatabase = getUserService().createUserDatabase(DATABASE_TYPE, UserDatabaseManager.DEFAULT_REALM_NAME, UserDatabaseManager.DEFAULT_REALM_DESCRIPTION, true);
        User user = userDatabase.createAccount(USERNAME, "", "", "", new Role[] {});
        userDatabase.changePassword(user.getPrincipalName(), "", PASSWORD, false);

        Property.setProperty(new RealmKey("security.userDatabase", userDatabase.getRealm()), DATABASE_TYPE, getSessionInfo());
        Property.setProperty(new RealmKey("security.administrators", userDatabase.getRealm()), USERNAME, getSessionInfo());
    }
View Full Code Here

Examples of com.adito.security.UserDatabase.changePassword()

    }

    private User createSuperUser() throws Exception {
        UserDatabase userDatabase = getUserService().createUserDatabase(DATABASE_TYPE, UserDatabaseManager.DEFAULT_REALM_NAME, UserDatabaseManager.DEFAULT_REALM_DESCRIPTION, true);
        User user = userDatabase.createAccount(USERNAME, "", "", "", new Role[] {});
        userDatabase.changePassword(user.getPrincipalName(), "", PASSWORD, false);
        Property.setProperty(new RealmKey("security.userDatabase", userDatabase.getRealm()), DATABASE_TYPE, getSessionInfo());
        Property.setProperty(new RealmKey("security.administrators", userDatabase.getRealm()), USERNAME, getSessionInfo());
        return user;
    }
   
View Full Code Here

Examples of com.adito.security.UserDatabase.changePassword()

        try {

            // Change the password

            udb.changePassword(user.getPrincipalName(), f.getOldPassword(), f.getNewPassword(), false);
           
            PublicKeyStore publicKeyStore = PublicKeyStore.getInstance();
            if ("automatic".equals(Property.getProperty(new SystemConfigKey("security.privateKeyMode")))) { 
                if (publicKeyStore.isPassphraseValid(user.getPrincipalName(), f.getOldPassword())) {
                    publicKeyStore.changePrivateKeyPassphrase(user.getPrincipalName(), f.getOldPassword(), f.getNewPassword());
View Full Code Here

Examples of com.aerospike.client.command.AdminCommand.changePassword()

    AdminCommand command = new AdminCommand();
    byte[] userBytes = Buffer.stringToUtf8(user);

    if (Arrays.equals(userBytes, cluster.getUser())) {
      // Change own password.
      command.changePassword(cluster, policy, userBytes, hash);
    }
    else {
      // Change other user's password by user admin.
      command.setPassword(cluster, policy, userBytes, hash);
    }
View Full Code Here

Examples of com.agiletec.aps.system.services.user.IUserManager.changePassword()

      user.setPassword(password);
      user.setDisabled(false);
      this.loadUserDefaultRoles(user);
      this.loadUserDefaultGroups(user);
      userManager.updateUser(user);
      userManager.changePassword(username, password);// Per salvare password non in chiaro
      this.getUserRegDAO().removeConsumedToken(token);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "activateUser");
      throw new ApsSystemException("Error in Account activation", t);
    }
View Full Code Here

Examples of com.centraview.administration.user.User.changePassword()

      if (newPassword != null && newPassword.length() != 0)
      {
        try
        {
          uRemote.changePassword(individualId, oldPassword, newPassword);
        } catch (UserException ue) {
          if (ue.getExceptionId() == UserException.COULDNOT_CHANGE_PASSWORD)
          {
            allErrors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("error.freeForm",
                "Error while updating login information, " + ue.getExceptionDescription()));
View Full Code Here

Examples of com.commander4j.db.JDBUser.changePassword()

        user.setUserId(username);
        user.setPassword(password);
        user.setPasswordNew(pass1);
        user.setPasswordVerify(pass2);
        if (user.changePassword())
        {
          validated = true;
          Common.userList.addUser(Common.sessionID, user);
          dispose();
        }
View Full Code Here

Examples of com.esri.gpt.framework.security.identity.IdentityAdapter.changePassword()

  try {
   
    // execute the password change,
    // set success massage and navigation outcome
    IdentityAdapter idAdapter = context.newIdentityAdapter();
    idAdapter.changePassword(context.getUser(),getChangePasswordCriteria());
    msgBroker.addSuccessMessage("identity.changePassword.success");
    setNavigationOutcome(ResourceKeys.NAVIGATIONOUTCOME_HOME_DIRECT);
   
  } catch (CredentialsDeniedException e) {
    msgBroker.addErrorMessage("identity.changePassword.err.old");
View Full Code Here

Examples of com.ibm.sbt.services.client.smartcloud.bss.AuthenticationService.changePassword()

            .setConfirmPassword(newPassword);
   
    System.out.println("Change password: " + userCredential.toJson());
   
    AuthenticationService authenticationService = getAuthenticationService();
    authenticationService.changePassword(userCredential);
    }
     
  /**
   * Demo.
   *
 
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.