List Info

Thread: TSIK and customized JCE povider




TSIK and customized JCE povider
user name
2006-03-08 22:09:50
Gopi,
TSIK was designed to provide simplified security APIs to avoid these kind of decisions being taken by the programmer and instead depend on the provider order supplied programmatically via addProvider() or via the java.security file. Do you find that doesn't work for you?
 
hans


From: Santhanakrishnan, Gopikrishna [mailto:gsanthanakrishnanverisign.com]
Sent: Wednesday, March 08, 2006 11:09 AM
To: tsik-devws.apache.org
Subject: 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
 
 
 
 
 
 
 
 
 
 
 
 
 
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )