org.keyczar
Class KeyczarTool

java.lang.Object
  extended by org.keyczar.KeyczarTool

public class KeyczarTool
extends java.lang.Object

Command line tool for generating Keyczar key files. The following commands are supported:

Author:
steveweis@gmail.com (Steve Weis), arkajit.dey@gmail.com (Arkajit Dey)

Constructor Summary
KeyczarTool()
           
 
Method Summary
static MockKeyczarReader getMock()
          Returns a mock for testing purposes
static void main(java.lang.String[] args)
          Uses setFlags() to parse command line arguments and delegates to the appropriate command function or prints the usage instructions if command syntax is invalid.
static void setReader(MockKeyczarReader reader)
          Sets the mock KeyczarReader used only for testing.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyczarTool

public KeyczarTool()
Method Detail

setReader

public static void setReader(MockKeyczarReader reader)
Sets the mock KeyczarReader used only for testing.

Parameters:
reader -

getMock

public static MockKeyczarReader getMock()
Returns a mock for testing purposes

Returns:
A mock KeyCzar reader

main

public static void main(java.lang.String[] args)
Uses setFlags() to parse command line arguments and delegates to the appropriate command function or prints the usage instructions if command syntax is invalid.

Parameters:
args - from the command line