org.apache.commons.openpgp

Class BouncyCastleOpenPgpStreamingSigner

Implemented Interfaces:
OpenPgpStreamingSigner

public class BouncyCastleOpenPgpStreamingSigner
extends java.lang.Object
implements OpenPgpStreamingSigner

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

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

ROLE

Constructor Summary

BouncyCastleOpenPgpStreamingSigner(OutputStream signature, String keyId, KeyRing keyRing, boolean asciiArmor)
BouncyCastleOpenPgpStreamingSigner(String keyId, KeyRing keyRing, boolean asciiArmor)

Method Summary

byte[]
finish()
void
update(byte[] buf)
void
update(byte[] buf, int offset, int length)

Constructor Details

BouncyCastleOpenPgpStreamingSigner

public BouncyCastleOpenPgpStreamingSigner(OutputStream signature,
                                          String keyId,
                                          KeyRing keyRing,
                                          boolean asciiArmor)
            throws OpenPgpException

BouncyCastleOpenPgpStreamingSigner

public BouncyCastleOpenPgpStreamingSigner(String keyId,
                                          KeyRing keyRing,
                                          boolean asciiArmor)
            throws OpenPgpException

Method Details

finish

public byte[] finish()
            throws OpenPgpException,
                   IOException
Specified by:
finish in interface OpenPgpStreamingSigner

update

public void update(byte[] buf)
            throws OpenPgpException
Specified by:
update in interface OpenPgpStreamingSigner

update

public void update(byte[] buf,
                   int offset,
                   int length)
            throws OpenPgpException
Specified by:
update in interface OpenPgpStreamingSigner