org.bouncycastle.openpgp.examples

Class ClearSignedFileProcessor


public class ClearSignedFileProcessor
extends java.lang.Object

A simple utility class that creates clear signed files and verifies them.

To sign a file: ClearSignedFileProcessor -s fileName secretKey passPhrase.
If -a is specified the output file will be "ascii-armored".

To decrypt: ClearSignedFileProcessor -v fileName signatureFile publicKeyFile.

Note: This example does not dash escape the input on signing or look for dash escaping on verification. See section 7 of RFC 2440 for further details.

Method Summary

static void
main(String[] args)

Method Details

main

public static void main(String[] args)
            throws Exception