Bouncy Castle Cryptography 1.26

org.bouncycastle.openpgp.examples
Class SignedFileProcessor

java.lang.Object
  extended by org.bouncycastle.openpgp.examples.SignedFileProcessor

public class SignedFileProcessor
extends java.lang.Object

A simple utility class that signs and verifies files.

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

To decrypt: SignedFileProcessor -v fileName publicKeyFile.

Note: this example will silently overwrite files, nor does it pay any attention to the specification of "_CONSOLE" in the filename. It also expects that a single pass phrase will have been used.


Constructor Summary
SignedFileProcessor()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignedFileProcessor

public SignedFileProcessor()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

Bouncy Castle Cryptography 1.26