public final boolean setServerCredentials(String username, String password) {
		if (isRunningHeadless()) {
			// only change client authenticator in headless mode
			ClientUtil.setClientAuthenticator(new PasswordClientAuthenticator(username, password));
		}
		return verifyRepositoryConnection();
	}
Establishes fixed login credentials for Ghidra Server access.
<p>
NOTE: Only used for Headless environment, other GUI environments should
continue to prompt user for login credentials as needed.

@param username login name or null if not applicable or to use default name
@param password login password
@return true if active project is either private or shared project is
connected to its server repository.  False is returned if not active
project or an active shared project failed to connect.
Ghidra/Features/Base/src/main/java/ghidra/app/script/GhidraScript.java