IBM

IBM PKCS com.ibm.security.pkcs8 Package


[ Programming Guide Home | IBM PKCS Home | Introduction | Packages ]

com.ibm.security.pkcs8

The IBM PKCS package, com.ibm.security.pkcs8, consists of two classes to help in the instantiation and manipulation of private key information. The pkcs8 package implements version 1.2 of the PKCS #8 standard.

Depending on the action you need to perform, you may need to use one or more of the following classes.

PrivateKeyInfo

Consult the PKCS8PrivKeyInfo.java file for code samples of how to create a PrivateKeyInfo object and convert it into an EncryptedPrivateKeyInfo object.

EncryptedPrivateKeyInfo

Consult the PKCS8EncrPrivKeyInfo.java file for code samples of how to create a PrivateKeyInfo object from an EncryptedPrivateKeyInfo object.

All the sample .java files can be found within docs\pkcs\pkcssamples.jar and on a Unix system in docs/pkcs/pkcssamples.jar. Within the jar file there is a src directory containing the source code for the samples.