Problem:
java.security.NoSuchProviderException: no such provider: BC
Solution:
1. Download Bouncy Castle JAR, e.g.: bcprov-jdk15on-157.jar
2. In the code, add:
if (Security.getProvider(BouncyCastleProvider.PROVIDER_NAME) == null)
{
Security.addProvider(new BouncyCastleProvider());
}
No comments:
Post a Comment