org.hardtokenmgmt.keyceremony.tolima
Class AutoSenseGenCATokenInfo

java.lang.Object
  extended by org.hardtokenmgmt.keyceremony.tolima.AutoSenseGenCATokenInfo
All Implemented Interfaces:
IGenCATokenInfo

public class AutoSenseGenCATokenInfo
extends java.lang.Object
implements IGenCATokenInfo

Class that tries to automatically determine which IGenCATokenInfo implementation that should be used depending on the configuration files found in the file system. Currently have support for PrimeCardHSM and SoftCAToken

Version:
$Id$
Author:
Philip Vendil 17 dec 2008

Constructor Summary
AutoSenseGenCATokenInfo()
           
 
Method Summary
 org.ejbca.core.model.ca.catoken.CATokenInfo getCATokenInfo(java.lang.String name)
          Method that should generate a CATokenInfo used by the CA.
 void init(java.util.Properties props, java.io.Console console, java.io.PrintStream out)
          Method that should initialize this implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoSenseGenCATokenInfo

public AutoSenseGenCATokenInfo()
Method Detail

init

public void init(java.util.Properties props,
                 java.io.Console console,
                 java.io.PrintStream out)
Description copied from interface: IGenCATokenInfo
Method that should initialize this implementation.

Specified by:
init in interface IGenCATokenInfo
Parameters:
props - containing the keyceremony.properties file

getCATokenInfo

public org.ejbca.core.model.ca.catoken.CATokenInfo getCATokenInfo(java.lang.String name)
                                                           throws java.io.IOException
Description copied from interface: IGenCATokenInfo
Method that should generate a CATokenInfo used by the CA. This could be a soft or hard CA Token Info.

Specified by:
getCATokenInfo in interface IGenCATokenInfo
Parameters:
name - The name of the ca about to generate
Returns:
a CATokenInfo, never null
Throws:
java.io.IOException