AuthenticationService authenticationService = getAuthenticationService();
authenticationService.setOneTimePassword(userCredential);
}
public void changePassword(String loginName, String oldPassword, String newPassword) throws BssException, JsonException, IOException {
UserCredentialJsonBuilder userCredential = new UserCredentialJsonBuilder();
userCredential.setLoginName(loginName)
.setOldPassword(oldPassword)
.setNewPassword(newPassword)
.setConfirmPassword(newPassword);
System.out.println("Change password: " + userCredential.toJson());
AuthenticationService authenticationService = getAuthenticationService();
authenticationService.changePassword(userCredential);
}