org.hardtokenmgmt.keyceremony.tolima
Class PrimeCardHSMGenCATokenInfo
java.lang.Object
org.hardtokenmgmt.keyceremony.tolima.PrimeCardHSMGenCATokenInfo
- All Implemented Interfaces:
- IGenCATokenInfo
public class PrimeCardHSMGenCATokenInfo
- extends java.lang.Object
- implements IGenCATokenInfo
Implementation used to use PrimeCard HSM when
generating CAs.
- Version:
- $Id$
- Author:
- Philip Vendil 26 jan 2008
|
Method Summary |
java.io.FileReader |
getCATokenFile(java.lang.String path)
Returns a FileReader to the given path |
org.ejbca.core.model.ca.catoken.CATokenInfo |
getCATokenInfo(java.lang.String name)
Method that should generate a CATokenInfo used by the CA. |
java.lang.String |
getPINProperties(java.lang.String pINChar,
java.io.FileReader fr)
|
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 |
CATOKEN_LOCATION
public static final java.lang.String CATOKEN_LOCATION
- See Also:
- Constant Field Values
PrimeCardHSMGenCATokenInfo
public PrimeCardHSMGenCATokenInfo()
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- See Also:
IGenCATokenInfo.init(Properties, Console, PrintStream)
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- See Also:
IGenCATokenInfo.getCATokenInfo(java.lang.String)
getCATokenFile
public java.io.FileReader getCATokenFile(java.lang.String path)
throws java.io.IOException
- Returns a FileReader to the given path
- Throws:
java.io.IOException
getPINProperties
public java.lang.String getPINProperties(java.lang.String pINChar,
java.io.FileReader fr)
throws java.io.IOException
- Throws:
java.io.IOException