Java Security check if Bouncy Castle provider is installed
import java.security.Security; public class Main { public static void main(String[] args) { String providerName = "BC"; if (Security.getProvider(providerName) == null) { System.out.println(providerName + " provider not installed"); } else {// w ww. j a v a 2 s .co m System.out.println(providerName + " is installed."); } } }