org.hardtokenmgmt.keyceremony.tolima
Class BaseKeyCeremony

java.lang.Object
  extended by org.hardtokenmgmt.keyceremony.tolima.BaseKeyCeremony
Direct Known Subclasses:
EJBCAKeyCeremony

public abstract class BaseKeyCeremony
extends java.lang.Object

Base class used by implemetation performing key ceremony initializations

Version:
$Id$
Author:
Philip Vendil 26 jan 2008

Field Summary
protected  java.io.Console console
           
protected  java.io.PrintStream out
           
protected  java.util.Properties props
           
 
Constructor Summary
BaseKeyCeremony()
           
 
Method Summary
protected  boolean getConfirmation(int level, java.lang.String message)
           
protected  void initProps()
           
protected  java.io.PrintStream out(int level)
          Help method printing a string at the specified level.
protected  java.lang.String readLine()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

props

protected java.util.Properties props

out

protected java.io.PrintStream out

console

protected java.io.Console console
Constructor Detail

BaseKeyCeremony

public BaseKeyCeremony()
Method Detail

initProps

protected void initProps()
                  throws java.lang.Exception
Throws:
java.lang.Exception

readLine

protected java.lang.String readLine()
Returns:
Method returning a line from standard input.

out

protected java.io.PrintStream out(int level)
Help method printing a string at the specified level.

Parameters:
level - is the number of double spaces inserted before the text.

getConfirmation

protected boolean getConfirmation(int level,
                                  java.lang.String message)
Returns:
Method expecting a 'Y' or 'N'.