Return a copy when explicitly asked for one (fixes a test).

This commit is contained in:
akwizgran
2011-11-29 21:09:48 +00:00
parent e5c8a1415d
commit 851a44eb40

View File

@@ -31,7 +31,7 @@ class ErasableKeyImpl implements ErasableKey {
} }
public ErasableKey copy() { public ErasableKey copy() {
return new ErasableKeyImpl(getEncoded(), algorithm); return new ErasableKeyImpl(key.clone(), algorithm);
} }
public synchronized void erase() { public synchronized void erase() {