Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Entrust Java API toolkit and Rainbow USB Token PKCS#11 Problem

843811Jul 26 2007 — edited Oct 27 2007
Hi All,

Please help me out in resolving this issue.
I am working on PKCS#11 USB token based Certificate generated by Entrust Authority Security Manager 7.0.
As part of my code I am using Entrust Authorty Security Toolkit for Java 7.2 API's com.entrust.toolkit.credentials.User class.
When I invoke
user.login(creadReader,password);
It is resulting in following Exceptions:
1. error occured while reading from an Entrust Digital Identity on a Cryptoki device
2. error occurred while accessing the 'Signing Certificate' certificate object on the token
3.The required entry does not exist as a certificate object in the public memory

Also the Certificate is being recognized in the USB token.
I have used the following Code:

p11LibConn = new PKCS11LibraryConnection(p11Library);
// Create a credential read that is used to read a set of
// credentials from a token
PKCS11Information info = new PKCS11Information(p11LibConn);
SlotList slotlist = info.getSlotList(true);
long[] slotIds = slotlist.getSlotIDs();
for (int i = 0; i < slotIds.length; i++)
slotId = slotIds;
CredentialReader tokenReader = new TokenReader(p11LibConn, slotId);
// Reset the user's credential writer (no longer want to use the
// token initializer)
user.setCredentialWriter(null);
secSubSysWinObj.setConnection();
// Log the user in
int status = user.login(tokenReader, new SecureStringBuffer(new StringBuffer(userPin)));


Thank you in Advance,
Santhosh kiran
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 24 2007
Added on Jul 26 2007
1 comment
623 views