How do I get an instance of a security algorithm from a specific provider?

John Zukowski

By default, algorithms are searched based upon the order they are listed in the provider file or order added. If you wish to get an algorithm from a specific provider, you have to include the provider name in your request:

kpg = KeyPairGenerator.getInstance("DSA", "jGuru");