Cleaned up storage. No more registered objects - it was a bad idea
This commit is contained in:
parent
deb1e82b90
commit
1c26fa5023
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue