Cleaned up storage. No more registered objects - it was a bad idea

This commit is contained in:
nathan 2014-09-16 15:39:33 +02:00
parent deb1e82b90
commit 1c26fa5023
1 changed files with 4 additions and 4 deletions

View File

@ -137,7 +137,7 @@ class PropertyStore extends SettingsStore {
checkAccess(EndPoint.class);
this.props.serverPublicKey = serverPublicKey;
this.storage.save(this.name);
this.storage.save(this.name, this.props);
}
/**
@ -153,7 +153,7 @@ class PropertyStore extends SettingsStore {
this.props.salt = new byte[256];
secureRandom.nextBytes(this.props.salt);
this.storage.save(this.name);
this.storage.save(this.name, this.props);
return this.props.salt;
}
@ -178,7 +178,7 @@ class PropertyStore extends SettingsStore {
checkAccess(RegistrationWrapper.class);
this.props.registeredServer.put(ByteArrayWrapper.wrap(hostAddress), publicKey);
this.storage.save(this.name);
this.storage.save(this.name, this.props);
}
/**
@ -189,7 +189,7 @@ class PropertyStore extends SettingsStore {
checkAccess(RegistrationWrapper.class);
ECPublicKeyParameters remove = this.props.registeredServer.remove(ByteArrayWrapper.wrap(hostAddress));
this.storage.save(this.name);
this.storage.save(this.name, this.props);
return remove != null;
}