/** * Generates the signature of the given input stream as an ASCII file into the given output stream. */ void sign(InputStream in, OutputStream signatureOutput) throws PGPException, IOException, GeneralSecurityException { BCPGOutputStream bOut = new BCPGOutputStream(new ArmoredOutputStream(signatureOutput)); sign(in).encode(bOut); bOut.close(); }
} finally { if (lOut != null) try { lOut.close(); } catch (IOException e) {} if (bOut != null) try { bOut.close(); } catch (IOException e) {} if (out != null) try { out.close(); } catch (IOException e) {} if (fIn != null) try { fIn.close(); } catch (IOException e) {}