Examples of updateUser()


Examples of org.glassfish.security.common.FileRealmHelper.updateUser()

                    logger.info(strings.get("new.adminpw.prompt"));
                    String npw = super.getPassword(npwo, null, true);
                    if (npw == null) {
                        throw new CommandException(strings.get("no.console"));
                    }
                    ar.updateUser(auser, auser, npw.toCharArray(), null);
                    ar.persist();
                }
            } catch (IOException ioe) {
                throw new CommandException(ioe);
            }
View Full Code Here

Examples of org.glassfish.security.common.FileRealmHelper.updateUser()

                    logger.info(strings.get("new.adminpw.prompt"));
                    String npw = super.getPassword(npwo, null, true);
                    if (npw == null) {
                        throw new CommandException(strings.get("no.console"));
                    }
                    ar.updateUser(auser, auser, npw.toCharArray(), null);
                    ar.persist();
                }
            } catch (IOException ioe) {
                throw new CommandException(ioe);
            }
View Full Code Here

Examples of org.glassfish.security.common.FileRealmHelper.updateUser()

                //Authenticate the old password
                String[] groups = helper.authenticate(programOpts.getUser(), password.toCharArray());
                if (groups == null) {
                    throw new CommandException(strings.get("InvalidCredentials", programOpts.getUser()));
                }
                helper.updateUser(programOpts.getUser(), programOpts.getUser(), newpassword.toCharArray(), null);
                helper.persist();
                return SUCCESS;

            } else {
                //Cannot change password locally for non file realms
View Full Code Here

Examples of org.glassfish.security.common.FileRealmHelper.updateUser()

                    String[] groups = helper.authenticate(programOpts.getUser(), ((String) passwords.get(oldpwName)).toCharArray());
                    if (groups == null) {
                        throw new CommandException(strings.get("InvalidCredentials", programOpts.getUser()));
                    }
                }
                helper.updateUser(programOpts.getUser(), programOpts.getUser(), ((String) passwords.get(newpwName)).toCharArray(), null);
                helper.persist();
                return SUCCESS;

            } else {
                //Cannot change password locally for non file realms
View Full Code Here

Examples of org.glassfish.security.common.FileRealmHelper.updateUser()

                    logger.info(strings.get("new.adminpw.prompt"));
                    String npw = super.getPassword(npwo, null, true);
                    if (npw == null) {
                        throw new CommandException(strings.get("no.console"));
                    }
                    ar.updateUser(auser, auser, npw.toCharArray(), null);
                    ar.persist();
                }
            } catch (IOException ioe) {
                throw new CommandException(ioe);
            }
View Full Code Here

Examples of org.infoglue.cms.controllers.kernel.impl.simple.UserControllerProxy.updateUser()

    {
      try
      {
        final UserControllerProxy controller = UserControllerProxy.getController(getDatabase());
        controller.createUser(systemUserVO);
        controller.updateUser(systemUserVO, roleNames, groupNames);
        setFunctionStatus(STATUS_OK);
      }
      catch(Exception e)
      {
        throwException(e);
View Full Code Here

Examples of org.jabusuite.core.users.session.JbsUsersRemote.updateUser()

            if (this.getDlgState() == DlgState.dsInsert) {
                System.out.println("Adding new entity " + this.getUser().getId() + ".");
                jbsUsers.createUser(this.getUser());
            } else if (this.getDlgState() == DlgState.dsEdit) {
                System.out.println("Saving existing entity " + this.getUser().getId() + ".");
                jbsUsers.updateUser(this.getUser());
            }
            System.out.println("Entity saved.");

        } catch (NamingException e) {
            e.printStackTrace();
View Full Code Here

Examples of org.jmanage.core.auth.UserManager.updateUser()

            return;
        }

        /* update the password for admin */
        admin.setPassword(Crypto.hash(newPassword));
        userManager.updateUser(admin);

        /* re-encrypt the key */
        EncryptedKey encryptedKey = KeyManager.readKey(oldPassword);
        encryptedKey.setPassword(newPassword);
        /* write the encryptedKey to the key file */
 
View Full Code Here

Examples of org.jresearch.gossip.dao.UserDAO.updateUser()

                user.setIp(request.getRemoteAddr());
                forward=IConst.TOKEN.WELCOME;
                log(request, "logs.LOG7", user.getName());
            } else {
                //update user info
                dao.updateUser(pForm, user.getName());
                user = dao.getUserEncoded(user.getName(), user.getPassword());
                user.setIp(request.getRemoteAddr());
                log(request, "logs.LOG19");

            }
View Full Code Here

Examples of org.pentaho.platform.security.userroledao.ws.IUserRoleWebService.updateUser()

    userObj.setName( "test1" );
    userObj.setDescription( "testUpdateUser" );
    userObj.setPassword( "newpass" );

    try {
      service.updateUser( userObj );
      Assert.fail();
    } catch ( UserRoleException e ) {
      Assert.assertTrue( "ERROR_0001 not found in " + e.getMessage(), e.getMessage().indexOf( "ERROR_0001" ) >= 0 );
    }
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.