PBESecretKeyEncryptor keyEncryptor)
throws PGPException
{
this.pub = pubKey;
BCPGObject secKey = (BCPGObject)privKey.getPrivateKeyDataPacket();
try
{
ByteArrayOutputStream bOut = new ByteArrayOutputStream();
BCPGOutputStream pOut = new BCPGOutputStream(bOut);