views:

202

answers:

1

Is it possible to install Bouncycastle provider programmaticly without modifying security policy file?

+2  A: 

sure:

    java.security.Security.addProvider(new BouncyCastleProvider());
mancereus
tried that that throws an exception. Docs for bouncy castle says i need to edit the security.policy file. I was wondering to do it programaticly.
Hamza Yerlikaya
nvm thanks i forgot to import java.security.Security should get some sleep.
Hamza Yerlikaya