available security providers list

Is there a way to get the registered security providers?Thanks in advanceAgostino
[102 byte] By [agostino75a] at [2007-10-3 4:08:55]
# 1

sure

// List All Provider And Its Algorithms

import java.security.Provider;

import java.security.Security;

import java.util.Enumeration;

public class MainClass {

public static void main(String[] args) throws Exception {

try {

Provider p[] = Security.getProviders();

for (int i = 0; i < p.length; i++) {

System.out.println(p[i]);

for (Enumeration e = p[i].keys(); e.hasMoreElements();)

System.out.println("\t" + e.nextElement());

}

} catch (Exception e) {

System.out.println(e);

}

}

}

good luck

the_Orienta at 2007-7-14 22:08:50 > top of Java-index,Security,Cryptography...