I tried that code. I get a list of providers (I removed some of the key details). I'm not sure what to make of this.
Provider 1 : SUN 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) :
Provider 2 : SunRsaSign Sun RSA signature provider :
Provider 3 : SunJSSE Sun JSSE provider(PKCS12, SunX509 key/trust factories, SSLv3, TLSv1) :
Provider 4 : SunJGSS Sun (Kerberos v5, SPNEGO) :
Provider 5 : SunSASL Sun SASL provider(implements client mechanisms for: DIGEST-MD5, GSSAPI, EXTERNAL, PLAIN, CRAM-MD5; server mechanisms for: DIGEST-MD5, GSSAPI, CRAM-MD5) :
Provider 6 : XMLDSig XMLDSig (DOM XMLSignatureFactory; DOM KeyInfoFactory) :
Provider 7 : SunPCSC Sun PC/SC provider :
If I try this:
Security.addProvider(new com.sun.crypto.provider.SunJCE());
I get this exception:
java.lang.ClassNotFoundException: com.sun.crypto.provider.SunJCE
I can see that jce.jar and sunjce_provider.jar are included on classpath with JDK 1.6.0_06
[Message sent by forum member 'massimoh' (massimoh)]
http://forums.java.net/jive/thread.jspa?messageID=284478