private void writeUserList() throws IOException {
		try (BufferedWriter bw = new BufferedWriter(new FileWriter(userFile))) {
			for (UserEntry entry : userList.values()) {
				bw.write(entry.username);
				bw.write(":");
				if (entry.passwordHash != null) {
					bw.write(entry.passwordHash);
					bw.write(':');
					if (entry.passwordTime == NO_EXPIRATION) {
						bw.write('*');
					}
					else {
						bw.write(Long.toHexString(entry.passwordTime));
					}
				}
				else {
					bw.write("*:*");
				}
				if (entry.x500User != null) {
					bw.write(":");
					bw.write(entry.x500User.getName());
				}
				bw.newLine();
			}
		}
		lastUserListChange = userFile.lastModified();
	}
Write user data to file.
@throws IOException if error occurs while updating user file
Ghidra/Features/GhidraServer/src/main/java/ghidra/server/UserManager.java