Changed ByteArrayWrapper.nocopy -> wrap

This commit is contained in:
nathan 2014-08-28 00:20:12 +02:00
parent fb762bd1cd
commit 66cb0d4029
1 changed files with 3 additions and 3 deletions

View File

@ -125,7 +125,7 @@ class PropertyStore extends SettingsStore {
public synchronized ECPublicKeyParameters getRegisteredServerKey(byte[] hostAddress) throws dorkbox.network.util.exceptions.SecurityException {
checkAccess(RegistrationWrapper.class);
return this.props.registeredServer.get(ByteArrayWrapper.noCopy(hostAddress));
return this.props.registeredServer.get(ByteArrayWrapper.wrap(hostAddress));
}
/**
@ -135,7 +135,7 @@ class PropertyStore extends SettingsStore {
public synchronized void addRegisteredServerKey(byte[] hostAddress, ECPublicKeyParameters publicKey) throws dorkbox.network.util.exceptions.SecurityException {
checkAccess(RegistrationWrapper.class);
this.props.registeredServer.put(ByteArrayWrapper.noCopy(hostAddress), publicKey);
this.props.registeredServer.put(ByteArrayWrapper.wrap(hostAddress), publicKey);
this.storage.save();
}
@ -146,7 +146,7 @@ class PropertyStore extends SettingsStore {
public synchronized boolean removeRegisteredServerKey(byte[] hostAddress) throws dorkbox.network.util.exceptions.SecurityException {
checkAccess(RegistrationWrapper.class);
ECPublicKeyParameters remove = this.props.registeredServer.remove(ByteArrayWrapper.noCopy(hostAddress));
ECPublicKeyParameters remove = this.props.registeredServer.remove(ByteArrayWrapper.wrap(hostAddress));
this.storage.save();
return remove != null;