Advertisement
Psycho_Coder

JCA (Java Cryptography Architecture) Listing all Security Pr

Oct 13th, 2014
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.61 KB | None | 0 0
  1. import java.security.Provider;
  2. import java.security.Security;
  3.  
  4. /**
  5.  * @author psychocoder
  6.  * Class to list all the JCA Security Providers
  7.  */
  8. public class ListProviders {
  9.  
  10.  public static void main(String[] args) {
  11.   System.out.println("List of All Cryptographic Service"
  12.     + " Providers and their versions\n");
  13.   for (Provider provider : Security.getProviders()) {
  14.    System.out.println("Name : " + provider.getName());
  15.    System.out.println("Information About Provider : " + provider.getInfo());
  16.    System.out.println("Version : " + provider.getVersion());
  17.    System.out.println("\n");
  18.   }
  19.  }
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement