Resetting the user password
This action is the equivalent to pdamin command user modify testuser password changeme.
The following example shows how to perform an administrative reset of the user password:
// Fetch the user String userId = testuser; RgyUser rgyUser = null; try { rgyUser = rgyRegistry.getUser(Default, userId); }catch (RgyException e) { e.printStackTrace(); System.exit(1); }// Ensure the user was found if (rgyUser == null) { System.out.println(Group does not exist); System.exit(1); }try { rgyUser = rgyUser.setPassword(changeme.toCharArray()); }catch (RgyException e) { e.printStackTrace(); System.exit(1); }
Parent topic: Groups