org.hardtokenmgmt.keyceremony.tolima
Class AutoSenseGenCATokenInfo
java.lang.Object
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
|
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 |
AutoSenseGenCATokenInfo
public AutoSenseGenCATokenInfo()
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