Class PGPSigner

java.lang.Object
org.vafer.jdeb.signing.PGPSigner

public class PGPSigner extends Object
Signing with OpenPGP.
  • Constructor Details

  • Method Details

    • clearSign

      public void clearSign(String input, OutputStream output) throws IOException, org.bouncycastle.openpgp.PGPException
      Creates a clear sign signature over the input data. (Not detached)
      Parameters:
      input - the content to be signed
      output - the output destination of the signature
      Throws:
      IOException
      org.bouncycastle.openpgp.PGPException
    • clearSign

      public void clearSign(InputStream input, OutputStream output) throws IOException, org.bouncycastle.openpgp.PGPException
      Creates a clear sign signature over the input data. (Not detached)
      Parameters:
      input - the content to be signed
      output - the output destination of the signature
      Throws:
      IOException
      org.bouncycastle.openpgp.PGPException
    • getSecretKey

      public org.bouncycastle.openpgp.PGPSecretKey getSecretKey()
      Returns the secret key.
    • getPrivateKey

      public org.bouncycastle.openpgp.PGPPrivateKey getPrivateKey()
      Returns the private key.