class PasswordSecurity implements Reloadable {

    @PostConstruct
    @Override
    public void reload() {
        HashAlgorithm algorithm = settings.getProperty(SecuritySettings.PASSWORD_HASH);
        this.encryptionMethod = initializeEncryptionMethodWithEvent(algorithm);
        this.legacyAlgorithms = settings.getProperty(SecuritySettings.LEGACY_HASHES);
    }

    public  PasswordSecurity(Map<String, HashedPassword> storage, EncryptionMethod encryptionMethod);

}