import cleanup

This commit is contained in:
Dave
2015-07-03 23:43:06 +02:00
parent 9dac03891c
commit 1c1a6012bf
12 changed files with 60 additions and 56 deletions

View File

@@ -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;
}

View File

@@ -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) {

View File

@@ -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;