You are viewing a plain text version of this content. The canonical link for it is here.
Posted to tsik-dev@ws.apache.org by "Santhanakrishnan, Gopikrishna" <gs...@verisign.com> on 2006/03/08 20:08:32 UTC
TSIK and customized JCE povider
Hi,
I have a question on TSIK and JCE provider customization within JSSE.
If I want to use IBMJCE implementation programmatically within Sun JRE
to sign xml using TSIK like follows:
KeyFactory keyFactory = KeyFactory.getInstance("RSA", "IBMJCE");
PrivateKey privateKey = keyFactory.generatePrivate(privKeySpec);
CertificateFactory certFactory = CertificateFactory.getInstance("X.509",
"IBMJCE");
Certificate
cert=(X509Certificate)certFactory.generateCertificate(certStream);
...
//TSIK API
Signer signer = new Signer(applicationXML, privateKey, cert);
..
signer.sign(..);
Unlike JSSE API calls for PrivateKey and Certificate, TSIK API for
Signer is not taking the custom JCE provider name in its call. How am I
sure that TSIK is using IBMJCE hash implementation and NOT the default
SunJCE hash implemenatation?
Thanks
Gopi
.