import cleanup
This commit is contained in:
@@ -36,6 +36,8 @@ public interface NoAdapter {
|
||||
|
||||
public Collection<NoByteSet> pollNoByteSets(PublicKey address) throws NoAdapterException;
|
||||
|
||||
public void addNoByteSets(Collection<NoByteSet> noByteSets, PublicKey address)
|
||||
public void addNoByteSet(NoByteSet byteSet, PublicKey address) throws NoAdapterException;
|
||||
|
||||
public void addNoByteSets(Collection<NoByteSet> byteSets, PublicKey address)
|
||||
throws NoAdapterException;
|
||||
}
|
||||
|
||||
@@ -195,6 +195,14 @@ public class NoDefaultAdapter implements NoAdapter {
|
||||
return new ArrayList<NoByteSet>();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addNoByteSet(NoByteSet byteSet, PublicKey address) {
|
||||
if (!byteSets.containsKey(address)) {
|
||||
byteSets.put(address, new ArrayList<NoByteSet>());
|
||||
}
|
||||
byteSets.get(address).add(byteSet);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addNoByteSets(Collection<NoByteSet> addedByteSets, PublicKey address) {
|
||||
|
||||
@@ -28,7 +28,6 @@ import java.security.spec.KeySpec;
|
||||
import javax.crypto.BadPaddingException;
|
||||
import javax.crypto.Cipher;
|
||||
import javax.crypto.IllegalBlockSizeException;
|
||||
import javax.crypto.KeyGenerator;
|
||||
import javax.crypto.NoSuchPaddingException;
|
||||
import javax.crypto.SecretKey;
|
||||
import javax.crypto.SecretKeyFactory;
|
||||
|
||||
Reference in New Issue
Block a user