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

opencard.tests.terminal.codes
Class MFC41Codes

java.lang.Object
  |
  +--opencard.tests.terminal.codes.MFC35Codes
        |
        +--opencard.tests.terminal.codes.MFC41Codes

public class MFC41Codes
extends MFC35Codes
implements CommandCodes

CLAss and INStruction codes for MFC 4.1 smartcards. This class implements exactly the interface MFCCodes. The methods are trivial and therefore not commented. The base class already defines codes for MFC 3.5 and 4.0 smartcards, only the differences to MFC 4.1 cards can be found here.

Version:
$Id: MFC41Codes.java,v 1.1 1999/12/03 09:31:38 damke Exp $
See Also:
CommandCodes, MFC35Codes

Constructor Summary
MFC41Codes()
           
 
Method Summary
 byte getAppendRecordByte()
           
 int getBlockSize()
          Return the block size for data transfer.
 byte getClassByte()
           
 boolean needsZeroLc()
           
 boolean needsZeroLe()
           
 java.lang.String toString()
           
 
Methods inherited from class opencard.tests.terminal.codes.MFC35Codes
getAskRandomByte, getCreateFileByte, getDecreaseByte, getDeleteFileByte, getEraseBinaryByte, getExternalAuthByte, getGenerateKeyByte, getGetResponseByte, getGiveRandomByte, getIncreaseByte, getInvalidateByte, getReadBinaryByte, getReadRecordByte, getRehabilitateByte, getSearchByte, getSelectByte, getUpdateBinaryByte, getUpdateRecordByte, getVerifyCHVByte, needsZeroLe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MFC41Codes

public MFC41Codes()
Method Detail

getBlockSize

public int getBlockSize()
Return the block size for data transfer. The block size depends on whether secure messaging is used or not. If secure messaging is used, it is larger. The current structure of the MFC card services does not support this distinction, so the minimum of both block sizes is returned.
Specified by:
getBlockSize in interface CommandCodes
Returns:
the block size to use for data transfers
Overrides:
getBlockSize in class MFC35Codes

needsZeroLc

public boolean needsZeroLc()
Specified by:
needsZeroLc in interface CommandCodes
Overrides:
needsZeroLc in class MFC35Codes

needsZeroLe

public boolean needsZeroLe()
Specified by:
needsZeroLe in interface CommandCodes
Overrides:
needsZeroLe in class MFC35Codes

getClassByte

public byte getClassByte()
Specified by:
getClassByte in interface CommandCodes
Overrides:
getClassByte in class MFC35Codes

getAppendRecordByte

public byte getAppendRecordByte()
Specified by:
getAppendRecordByte in interface CommandCodes
Overrides:
getAppendRecordByte in class MFC35Codes

toString

public java.lang.String toString()
Specified by:
toString in interface CommandCodes
Overrides:
toString in class MFC35Codes