/** * Internal constructor, do not use directly. Use {@link PropertiesUserManagerFactory} instead. */ public PropertiesUserManager(PasswordEncryptor passwordEncryptor, URL userDataPath, String adminName) { super(adminName, passwordEncryptor); loadFromUrl(userDataPath); }
/** * Reloads the contents of the user.properties file. This allows any manual modifications to the file to be recognised by the running server. */ public void refresh() { synchronized (userDataProp) { if (userDataFile != null) { LOG.debug("Refreshing user manager using file: " + userDataFile.getAbsolutePath()); loadFromFile(userDataFile); } else { //file is null, must have been created using URL LOG.debug("Refreshing user manager using URL: " + userUrl.toString()); loadFromUrl(userUrl); } } }