com.rsa.certj.provider.pki

Interface PKIDebug

All Known Implementing Classes:
CRS, CMP

public interface PKIDebug

This class saves certificates, data and messages while using a PKI provider class for debugging.

Copyright © RSA Security Inc., 2000-2001. All rights reserved.


Method Summary

 void

saveCertificate(PKIResponseMessage response)

Saves a certificate returned with the response message.

 void

saveData(byte[] data, String fileName)

Saves arbitrary data given in data into a file named fileName in the message storage directory.

 void

saveMessage(byte[] bytes, PKIMessage message, ProtectInfo protectInfo)

Saves a serialized message into a file.

 

Method Detail

saveMessage

public void saveMessage(byte[] bytes,
                        PKIMessage message,
                        ProtectInfo protectInfo)
                 throws PKIException
Saves a serialized message into a file.

Parameters

         bytes  

A byte array that contains a serialized request or response message to be saved.

         message  

A PKIMessage object contains information that corresponds to the serialized message.

         protectInfo  

A ProtectInfo object used to generate protection bites for the serialized message.

Throws

PKIException - If saving the message fails.

saveCertificate

public void saveCertificate(PKIResponseMessage response)
                     throws PKIException
Saves a certificate returned with the response message.

Parameters

         response  

A PKIResponseMessage object with which a certificate may have returned.

Throws

PKIException - If saving the certificate returned fails.

saveData

public void saveData(byte[] data,
                     String fileName)
              throws PKIException
Saves arbitrary data given in data into a file named fileName in the message storage directory.

Parameters

         data  

A byte array to be stored into a file.

         fileName  

A String object indicating the name of the file to be used to store the data.

Throws

PKIException - If saving the data fails.


RSA BSAFE ® Cert-J 2.1.1 001-047007-211-001-000