Search in sources :

Example 1 with KeyStorage

use of bisq.common.crypto.KeyStorage in project bisq-core by bisq-network.

the class EncryptionTest method setup.

@Before
public void setup() throws CertificateException, NoSuchAlgorithmException, KeyStoreException, IOException, CryptoException {
    Security.addProvider(new BouncyCastleProvider());
    dir = File.createTempFile("temp_tests", "");
    // noinspection ResultOfMethodCallIgnored
    dir.delete();
    // noinspection ResultOfMethodCallIgnored
    dir.mkdir();
    KeyStorage keyStorage = new KeyStorage(dir);
    keyRing = new KeyRing(keyStorage);
}
Also used : KeyRing(bisq.common.crypto.KeyRing) KeyStorage(bisq.common.crypto.KeyStorage) BouncyCastleProvider(org.bouncycastle.jce.provider.BouncyCastleProvider) Before(org.junit.Before)

Example 2 with KeyStorage

use of bisq.common.crypto.KeyStorage in project bisq-core by bisq-network.

the class SigTest method setup.

@Before
public void setup() throws CertificateException, NoSuchAlgorithmException, KeyStoreException, IOException, CryptoException {
    Security.addProvider(new BouncyCastleProvider());
    dir = File.createTempFile("temp_tests", "");
    // noinspection ResultOfMethodCallIgnored
    dir.delete();
    // noinspection ResultOfMethodCallIgnored
    dir.mkdir();
    KeyStorage keyStorage = new KeyStorage(dir);
    keyRing = new KeyRing(keyStorage);
}
Also used : KeyRing(bisq.common.crypto.KeyRing) KeyStorage(bisq.common.crypto.KeyStorage) BouncyCastleProvider(org.bouncycastle.jce.provider.BouncyCastleProvider) Before(org.junit.Before)

Example 3 with KeyStorage

use of bisq.common.crypto.KeyStorage in project bisq-desktop by bisq-network.

the class TradesChartsViewModelTest method setup.

@Before
public void setup() throws IOException {
    Security.addProvider(new BouncyCastleProvider());
    dir = File.createTempFile("temp_tests1", "");
    // noinspection ResultOfMethodCallIgnored
    dir.delete();
    // noinspection ResultOfMethodCallIgnored
    dir.mkdir();
    keyRing = new KeyRing(new KeyStorage(dir));
}
Also used : KeyRing(bisq.common.crypto.KeyRing) KeyStorage(bisq.common.crypto.KeyStorage) BouncyCastleProvider(org.bouncycastle.jce.provider.BouncyCastleProvider) Before(org.junit.Before)

Aggregations

KeyRing (bisq.common.crypto.KeyRing)3 KeyStorage (bisq.common.crypto.KeyStorage)3 BouncyCastleProvider (org.bouncycastle.jce.provider.BouncyCastleProvider)3 Before (org.junit.Before)3