Package i5.las2peer.persistency
Class EnvelopeGenerator
java.lang.Object
i5.las2peer.persistency.EnvelopeGenerator
A simple command line tool for generating XML envelopes to the standard out.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PassphraseAgentImpl
Loads an agent from the given XML file name.static void
Command line script for generating a simple envelope.static void
usage()
Prints a usage help message.static void
Prints a usage help message and some additional information.
-
Constructor Details
-
EnvelopeGenerator
public EnvelopeGenerator()
-
-
Method Details
-
usage
public static void usage()Prints a usage help message. -
usage
Prints a usage help message and some additional information.- Parameters:
message
- additional information
-
loadAgent
public static PassphraseAgentImpl loadAgent(String filename) throws MalformedXMLException, 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:
IOException
- If the file could not be readMalformedXMLException
- If the agent's XML representation is malformed
-
main
Command line script for generating a simple envelope.- Parameters:
argv
-- xml file with owner agent
- passphrase of the owner for unlocking the key
- name of the (serializable or XmlAble) class to be nested in the envelope
needs a string constructor - String constructor value
-