import java.security.Provider;
import java.security.Security;
public class MainClass {
public static void main(String[] args) {
System.out.println("Providers installed on your system:");
Provider[] providerList = Security.getProviders();
for (int i = 0; i < providerList.length; i++) {
System.out.println("[" + (i + 1) + "] - Provider name: " + providerList[i].getName());
System.out.println("Provider version number: " + providerList[i].getVersion());
System.out.println("Provider information:\n" + providerList[i].getInfo());
}
}
}
/*Providers installed on your system:
[1] - Provider name: SUN
Provider version number: 1.6
Provider information:
SUN (DSA key/parameter generation; DSA signing; SHA-1, MD5 digests; SecureRandom; X.509 certificates; JKS keystore; PKIX CertPathValidator; PKIX CertPathBuilder; LDAP, Collection CertStores, JavaPolicy Policy; JavaLoginConfig Configuration)
[2] - Provider name: SunRsaSign
Provider version number: 1.5
Provider information:
Sun RSA signature provider
[3] - Provider name: SunJSSE
Provider version number: 1.6
Provider information:
Sun JSSE provider(PKCS12, SunX509 key/trust factories, SSLv3, TLSv1)
[4] - Provider name: SunJCE
Provider version number: 1.6
Provider information:
SunJCE Provider (implements RSA, DES, Triple DES, AES, Blowfish, ARCFOUR, RC2, PBE, Diffie-Hellman, HMAC)
[5] - Provider name: SunJGSS
Provider version number: 1.0
Provider information:
Sun (Kerberos v5, SPNEGO)
[6] - Provider name: SunSASL
Provider version number: 1.5
Provider information:
Sun SASL provider(implements client mechanisms for: DIGEST-MD5, GSSAPI, EXTERNAL, PLAIN, CRAM-MD5; server mechanisms for: DIGEST-MD5, GSSAPI, CRAM-MD5)
[7] - Provider name: XMLDSig
Provider version number: 1.0
Provider information:
XMLDSig (DOM XMLSignatureFactory; DOM KeyInfoFactory)
[8] - Provider name: SunPCSC
Provider version number: 1.6
Provider information:
Sun PC/SC provider
[9] - Provider name: SunMSCAPI
Provider version number: 1.6
Provider information:
Sun's Microsoft Crypto API provider
*/