How to get list of installed security providers

For this section you need to use:


This example shows how to list installed security providers. Every provider could provide other services - for example for ciphers, etc.

/* -- fill all security providers */>

Provider[] providers = Security.getProviders();

/* -- go throught installed providers */>

for (int i = 0; i < providers.length; i++ ) {
  System.out.println( providers[i].getName() + " - " + providers[i].getInfo() );

The output could be (depends on installed providers):

Provider Description
SUNSUN (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)
SunRsaSignSun RSA signature provider
SunECSun Elliptic Curve provider (EC, ECDSA, ECDH)
SunJSSESun JSSE provider(PKCS12, SunX509 key/trust factories, SSLv3, TLSv1)
SunJCESunJCE Provider (implements RSA, DES, Triple DES, AES, Blowfish, ARCFOUR, RC2, PBE, Diffie-Hellman, HMAC)
SunJGSSSun (Kerberos v5, SPNEGO)
SunSASLSun SASL provider(implements client mechanisms for: DIGEST-MD5, GSSAPI, EXTERNAL, PLAIN, CRAM-MD5, NTLM; server mechanisms for: DIGEST-MD5, GSSAPI, CRAM-MD5, NTLM)
XMLDSigXMLDSig (DOM XMLSignatureFactory; DOM KeyInfoFactory)
SunPCSCSun PC/SC provider
SunMSCAPISun's Microsoft Crypto API provider