Class EnvelopeGenerator

java.lang.Object
i5.las2peer.persistency.EnvelopeGenerator

public class EnvelopeGenerator
extends java.lang.Object
A simple command line tool for generating XML envelopes to the standard out.
  • Constructor Summary

    Constructors 
    Constructor Description
    EnvelopeGenerator()  
  • Method Summary

    Modifier and Type Method Description
    static PassphraseAgentImpl loadAgent​(java.lang.String filename)
    Loads an agent from the given XML file name.
    static void main​(java.lang.String[] argv)
    Command line script for generating a simple envelope.
    static void usage()
    Prints a usage help message.
    static void usage​(java.lang.String message)
    Prints a usage help message and some additional information.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • usage

      public static void usage()
      Prints a usage help message.
    • usage

      public static void usage​(java.lang.String message)
      Prints a usage help message and some additional information.
      Parameters:
      message - additional information
    • loadAgent

      public static PassphraseAgentImpl loadAgent​(java.lang.String filename) throws MalformedXMLException, java.io.IOException
      Loads an agent from the given XML file name.
      Parameters:
      filename - The XML filename to load the agent
      Returns:
      Returns a PassphraseAgent instance
      Throws:
      java.io.IOException - If the file could not be read
      MalformedXMLException - If the agent's XML representation is malformed
    • main

      public static void main​(java.lang.String[] argv)
      Command line script for generating a simple envelope.
      Parameters:
      argv -
      1. xml file with owner agent
      2. passphrase of the owner for unlocking the key
      3. name of the (serializable or XmlAble) class to be nested in the envelope
        needs a string constructor
      4. String constructor value