mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-25 21:42:07 +01:00
[omemo-signal-integration-test] Add Bouncy Castle as security provider
This commit is contained in:
parent
9e5564a597
commit
610e5dd803
1 changed files with 6 additions and 0 deletions
|
@ -27,6 +27,7 @@ import java.security.InvalidKeyException;
|
||||||
import java.security.KeyManagementException;
|
import java.security.KeyManagementException;
|
||||||
import java.security.NoSuchAlgorithmException;
|
import java.security.NoSuchAlgorithmException;
|
||||||
import java.security.NoSuchProviderException;
|
import java.security.NoSuchProviderException;
|
||||||
|
import java.security.Security;
|
||||||
|
|
||||||
import javax.crypto.BadPaddingException;
|
import javax.crypto.BadPaddingException;
|
||||||
import javax.crypto.IllegalBlockSizeException;
|
import javax.crypto.IllegalBlockSizeException;
|
||||||
|
@ -38,10 +39,15 @@ import org.jivesoftware.smack.XMPPException;
|
||||||
import org.jivesoftware.smackx.omemo.exceptions.CorruptedOmemoKeyException;
|
import org.jivesoftware.smackx.omemo.exceptions.CorruptedOmemoKeyException;
|
||||||
import org.jivesoftware.smackx.omemo.signal.SignalOmemoService;
|
import org.jivesoftware.smackx.omemo.signal.SignalOmemoService;
|
||||||
|
|
||||||
|
import org.bouncycastle.jce.provider.BouncyCastleProvider;
|
||||||
import org.igniterealtime.smack.inttest.SmackIntegrationTestFramework;
|
import org.igniterealtime.smack.inttest.SmackIntegrationTestFramework;
|
||||||
|
|
||||||
public class SmackOmemoSignalIntegrationTestFramework {
|
public class SmackOmemoSignalIntegrationTestFramework {
|
||||||
|
|
||||||
|
static {
|
||||||
|
Security.addProvider(new BouncyCastleProvider());
|
||||||
|
}
|
||||||
|
|
||||||
public static void main(String[] args) throws InvalidKeyException, NoSuchPaddingException,
|
public static void main(String[] args) throws InvalidKeyException, NoSuchPaddingException,
|
||||||
InvalidAlgorithmParameterException, IllegalBlockSizeException,
|
InvalidAlgorithmParameterException, IllegalBlockSizeException,
|
||||||
BadPaddingException, NoSuchAlgorithmException, NoSuchProviderException, SmackException,
|
BadPaddingException, NoSuchAlgorithmException, NoSuchProviderException, SmackException,
|
||||||
|
|
Loading…
Reference in a new issue