Java Security Provider get name/version/information

Description

Java Security Provider get name/version/information


import java.security.Provider;
import java.security.Security;

public class Main {
  public static void main(String[] args) {
    Provider[] providers = Security.getProviders();

    for (int i = 0; i != providers.length; i++) {
      System.out.println("Name: " + providers[i].getName());
      System.out.println("Version: " + providers[i].getVersionStr());
      System.out.println("Info: " + providers[i].getInfo());

    }//from   ww  w.ja v  a 2 s  .  c  om
  }
}



PreviousNext

Related