org.apache.commons.openpgp

Class BouncyCastleOpenPgpSigner

Implemented Interfaces:
OpenPgpSigner

public class BouncyCastleOpenPgpSigner
extends java.lang.Object
implements OpenPgpSigner

Bouncy Castle implementation of the OpenPGP signer.
Author:
Brett Porter

Fields inherited from interface org.apache.commons.openpgp.OpenPgpSigner

ROLE

Method Summary

void
detachedSign(InputStream data, OutputStream signature, String keyId, KeyRing keyRing, boolean asciiArmor)
void
sign(InputStream data, OutputStream signedOutput, String keyId, KeyRing keyRing, boolean asciiArmor)

Method Details

detachedSign

public void detachedSign(InputStream data,
                         OutputStream signature,
                         String keyId,
                         KeyRing keyRing,
                         boolean asciiArmor)
            throws OpenPgpException,
                   IOException
Specified by:
detachedSign in interface OpenPgpSigner

sign

public void sign(InputStream data,
                 OutputStream signedOutput,
                 String keyId,
                 KeyRing keyRing,
                 boolean asciiArmor)
            throws OpenPgpException
Specified by:
sign in interface OpenPgpSigner