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");
0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact