Using Java to import certificate/trust chains to the user.id file

How can I use to access the .id so I can read the file to show me the list of trust chains and certificates in there?Also how can I use Java to import a certificate into the .id file? I have tried the Notes.jar and the ncso.jar, but I only can get to the databases, and not much else in term of modifying the user.id file.

thanks,

Jim