OpenCard  
 
OCF, the OpenCard Framework is a standard Java framework for working with Smart Cards.  
 

com.ibm.opencard.signature
Class MFCSignatureFactoryER

java.lang.Object
  |
  +--com.ibm.opencard.signature.MFCSignatureFactoryER

public final class MFCSignatureFactoryER
extends java.lang.Object

A factory class for MFC signature service objects that are export restricted (ER). Export restrictions are due to U.S. export regulations. Here, the term factory refers to the design technique, not to OCF card service factories. The signature services implement the interfaces ... This class allows to create appropriate implementations of these services, along with some other helper objects.

Version:
$Id: MFCSignatureFactoryER.java,v 1.1 1999/12/02 16:06:10 damke Exp $

Method Summary
static MFCKeyConverter getKeyConverter(int cos)
          Returns a key converter for the given CardOS.
static MFCKeyGenImpl getKeyGenImpl(int cos)
          Returns a key generation service implementation for the given CardOS.
static MFCKeyImportImpl getKeyImpImpl(int cos)
          Returns a key import service implementation for the given CardOS.
static void initKGParam(MFCKeyGenParameter param, int cos)
          Initializes a MFCKeyGenParameter.
static void initKIParam(MFCKeyImportParameter param, int cos)
          Initializes a MFCKeyImportParameter.
static MFCKeyGenParameter newKGParam(CardServiceScheduler scheduler, SmartCard smartcard, boolean blocking, int cos)
          Returns an initialized parameter for creating a key generation service.
static MFCKeyImportParameter newKIParam(CardServiceScheduler scheduler, SmartCard smartcard, boolean blocking, int cos)
          Returns a new, initialized parameter for creating a key import service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getKeyConverter

public static MFCKeyConverter getKeyConverter(int cos)
Returns a key converter for the given CardOS.
Parameters:
cos - the CardOS indicator, see IBMMFCConstants
Returns:
a key converter for the CardOS
See Also:
IBMMFCConstants

getKeyGenImpl

public static MFCKeyGenImpl getKeyGenImpl(int cos)
Returns a key generation service implementation for the given CardOS. Currently, key generation is supported only by MFC 4.21 cards.
Parameters:
cos - the CardOS indicator, see IBMMFCConstants
Returns:
a key generation service implementation for the CardOS
See Also:
IBMMFCConstants

getKeyImpImpl

public static MFCKeyImportImpl getKeyImpImpl(int cos)
Returns a key import service implementation for the given CardOS.
Parameters:
cos - the CardOS indicator, see IBMMFCConstants
Returns:
a key import service implementation for the CardOS
See Also:
IBMMFCConstants

initKGParam

public static void initKGParam(MFCKeyGenParameter param,
                               int cos)
Initializes a MFCKeyGenParameter. The parameter gets initialized with a key generation service implementation. The rest of the parameter gets initialized by invoking initKIParam.
Parameters:
param - the parameter object to initialize
cos - the card OS to support, see IBMMFCConstants
See Also:
initKIParam(com.ibm.opencard.signature.MFCKeyImportParameter, int), IBMMFCConstants

initKIParam

public static void initKIParam(MFCKeyImportParameter param,
                               int cos)
Initializes a MFCKeyImportParameter. The parameter gets initialized with a key import service implementation and a key converter. The rest of the parameter gets initialized by invoking initSigParam.
Parameters:
param - the parameter object to initialize
cos - the card OS to support, see IBMMFCConstants
See Also:
MFCSignatureFactory.initSigParam(com.ibm.opencard.signature.MFCSignatureParameter, int), IBMMFCConstants

newKGParam

public static MFCKeyGenParameter newKGParam(CardServiceScheduler scheduler,
                                            SmartCard smartcard,
                                            boolean blocking,
                                            int cos)
Returns an initialized parameter for creating a key generation service. The parameter is initialized by invoking initKGParam.
Parameters:
scheduler - where to allocate channels, gets stored in the parameter
smartcard - the smartcard to support, gets stored in the parameter
blocking - whether to operate blocking, gets stored in the parameter
cos - card os
Returns:
a parameter for instantiating MFCKeyGenService
See Also:
initKGParam(com.ibm.opencard.signature.MFCKeyGenParameter, int), MFCKeyGenService#MFCKeyGenService(com.ibm.opencard.signature.MFCKeyGenParameter)

newKIParam

public static MFCKeyImportParameter newKIParam(CardServiceScheduler scheduler,
                                               SmartCard smartcard,
                                               boolean blocking,
                                               int cos)
Returns a new, initialized parameter for creating a key import service. The parameter is initialized by invoking initKIParam.
Parameters:
scheduler - where to allocate channels, gets stored in the parameter
smartcard - the smartcard to support, gets stored in the parameter
blocking - whether to operate blocking, gets stored in the parameter
cos - card os
Returns:
a parameter for instantiating MFCKeyImportService
See Also:
initKIParam(com.ibm.opencard.signature.MFCKeyImportParameter, int), MFCKeyImportService#MFCKeyImportService(com.ibm.opencard.signature.MFCKeyImportParameter)