Class PGPV3SignatureGenerator


  • public class PGPV3SignatureGenerator
    extends java.lang.Object
    Generator for old style PGP V3 Signatures.
    • Field Detail

      • lastb

        protected byte lastb
      • sigOut

        protected java.io.OutputStream sigOut
      • sigType

        protected int sigType
      • version

        protected final int version
    • Constructor Detail

      • PGPV3SignatureGenerator

        public PGPV3SignatureGenerator​(PGPContentSignerBuilder contentSignerBuilder)
        Create a signature generator built on the passed in contentSignerBuilder.
        Parameters:
        contentSignerBuilder - builder to produce PGPContentSigner objects for generating signatures.
    • Method Detail

      • generateOnePassVersion

        public PGPOnePassSignature generateOnePassVersion​(boolean isNested)
                                                   throws PGPException
        Return the one pass header associated with the current signature.
        Parameters:
        isNested -
        Returns:
        PGPOnePassSignature
        Throws:
        PGPException
      • update

        public void update​(byte b)
      • update

        public void update​(byte[] b)
      • update

        public void update​(byte[] b,
                           int off,
                           int len)
      • blockUpdate

        protected void blockUpdate​(byte[] block,
                                   int off,
                                   int len)
      • updateWithIdData

        protected void updateWithIdData​(int header,
                                        byte[] idBytes)