How to use BouncyCastle in IntelliJ
已回答
I have problems to use BouncyCastle in my Plugin. If i use my custom gradle or idea built-in library of bouncycastle then i get a SecurityException.
error constructing MAC: java.lang.SecurityException: JCE cannot authenticate the provider BC
java.io.IOException: error constructing MAC: java.lang.SecurityException: JCE cannot authenticate the provider BC
My Code is:
Provider provider = Security.getProvider("BC");
if (provider == null) {
Security.addProvider(new BouncyCastleProvider());
provider = Security.getProvider("BC");
}
KeyStore keyStore = KeyStore.getInstance("PKCS12", provider);
keyStore.load(file.getInputStream(), "123456".toCharArray());
How can i use signed jars of BouncyCastle in IntelliJ to use this as JCE Provider in my Plugin?
请先登录再写评论。
have create and the issue with description IDEA-181010
dirty workaround is to load it manually with class loader
```
```
(https://dkimitsa.github.io/2017/10/22/intellij-idea-bouncy-castle/) for more details