com.ibm.opencard.signature
Class MFC421SignatureImpl
java.lang.Object
|
+--com.ibm.opencard.signature.MFC40SignatureImpl
|
+--com.ibm.opencard.signature.MFC421SignatureImpl
- public class MFC421SignatureImpl
- extends MFC40SignatureImpl
Helper class for implementation of a signature card service for MFC 4.21
and compatible.
Send APDUs to the card. The methods that send APDUs are synchronized
simply to reuse the APDU buffers.
- Version:
- $Id: MFC421SignatureImpl.java,v 1.1 1999/12/02 16:06:09 damke Exp $
- See Also:
SignatureCardService,
MFCSignatureService,
MFC40SignatureImpl
|
Method Summary |
void |
assertSignDataAlgorithm(java.lang.String alg)
Assert that a specific signature service implementation supports a signature algorithm.
|
void |
assertSignHashAlgorithm(java.lang.String alg)
Assert that a specific signature service implementation supports a signature algorithm.
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
MFC421SignatureImpl
public MFC421SignatureImpl(MFCSigCodes codes)
- Instantiates a new signature card service implementation.
- Parameters:
codes - the command codes for the MFC card to support
assertSignDataAlgorithm
public void assertSignDataAlgorithm(java.lang.String alg)
throws CardServiceInabilityException
- Assert that a specific signature service implementation supports a signature algorithm.
The MFC 4.21 card only supports "SHA-1/RSA" and "DSA" (which combines SHA-1 and RawDSA)
- Parameters:
alg - The standard algorithm name.- Throws:
- CardServiceInabilityException - Thrown if the algorithm is not supported.
- Overrides:
- assertSignDataAlgorithm in class MFC40SignatureImpl
assertSignHashAlgorithm
public void assertSignHashAlgorithm(java.lang.String alg)
throws CardServiceInabilityException
- Assert that a specific signature service implementation supports a signature algorithm.
The MFC 4.21 card only supports "RSA" and "RawDSA"
- Parameters:
alg - The standard algorithm name.- Throws:
- CardServiceInabilityException - Thrown if the algorithm is not supported.
- Overrides:
- assertSignHashAlgorithm in class MFC40SignatureImpl
|