/** * Builds the {@link LegacyPropertiesSecurityRealm}. * @return built {@link LegacyPropertiesSecurityRealm} * @throws IOException when loading of property files fails * @throws java.io.FileNotFoundException when property file does not exist * @throws RealmUnavailableException when property file of users does not contain realm name specification */ public LegacyPropertiesSecurityRealm build() throws IOException { LegacyPropertiesSecurityRealm realm = new LegacyPropertiesSecurityRealm(this); realm.load(usersStream, groupsStream); return realm; }
/** * Builds the {@link LegacyPropertiesSecurityRealm}. * @return built {@link LegacyPropertiesSecurityRealm} * @throws IOException when loading of property files fails * @throws java.io.FileNotFoundException when property file does not exist * @throws RealmUnavailableException when property file of users does not contain realm name specification */ public LegacyPropertiesSecurityRealm build() throws IOException { LegacyPropertiesSecurityRealm realm = new LegacyPropertiesSecurityRealm(this); realm.load(usersStream, groupsStream); return realm; }
/** * Builds the {@link LegacyPropertiesSecurityRealm}. * @return built {@link LegacyPropertiesSecurityRealm} * @throws IOException when loading of property files fails * @throws java.io.FileNotFoundException when property file does not exist * @throws RealmUnavailableException when property file of users does not contain realm name specification */ public LegacyPropertiesSecurityRealm build() throws IOException { LegacyPropertiesSecurityRealm realm = new LegacyPropertiesSecurityRealm(this); realm.load(usersStream, groupsStream); return realm; }
/** * Builds the {@link LegacyPropertiesSecurityRealm}. * @return built {@link LegacyPropertiesSecurityRealm} * @throws IOException when loading of property files fails * @throws java.io.FileNotFoundException when property file does not exist * @throws RealmUnavailableException when property file of users does not contain realm name specification */ public LegacyPropertiesSecurityRealm build() throws IOException { LegacyPropertiesSecurityRealm realm = new LegacyPropertiesSecurityRealm(this); realm.load(usersStream, groupsStream); return realm; }
void reload() throws OperationFailedException { try (InputStream usersInputStream = new FileInputStream(usersFile); InputStream groupsInputStream = groupsFile != null ? new FileInputStream(groupsFile) : null) { delegate.load(usersInputStream, groupsInputStream); } catch (IOException e) { throw ROOT_LOGGER.unableToReLoadPropertiesFiles(e); } }