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

com.ibm.opencard.access
Class MFCAccessInformation

java.lang.Object
  |
  +--com.ibm.opencard.service.AccessInformation
        |
        +--com.ibm.opencard.access.MFCAccessInformation

public class MFCAccessInformation
extends AccessInformation


Field Summary
protected  MFCLazyAccessParser access_parser
          The parser that decodes the encoded access conditions.
static int CMD_CLS_CREATE
          Symbolic constant for command class CREATE.
static int CMD_CLS_DELETE
          Symbolic constant for command class DELETE.
static int CMD_CLS_IMPORT_KEY
          Symbolic constant for command class IMPORT KEY
static int CMD_CLS_INVALIDATE
          Symbolic constant for command class INVALIDATE.
static int CMD_CLS_READ
          Symbolic constant for command class READ.
static int CMD_CLS_REHABILITATE
          Symbolic constant for command class REHABILITATE.
static int CMD_CLS_UPDATE
          Symbolic constant for command class UPDATE.
static int CMD_CLS_USE_KEY
          Symbolic constant for command class USE KEY
protected static int NO_OF_COMMAND_CLASSES
          Symbolic constant for the number of command classes.
 
Fields inherited from class com.ibm.opencard.service.AccessInformation
access_conditions, encoded_conditions, encoded_offset
 
Method Summary
protected  AccessConditions parseAccessConditions(byte[] encoded, int offset, int cmdclass)
           
 
Methods inherited from class com.ibm.opencard.service.AccessInformation
getAccessConditions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CMD_CLS_UPDATE

public static final int CMD_CLS_UPDATE
Symbolic constant for command class UPDATE.

CMD_CLS_READ

public static final int CMD_CLS_READ
Symbolic constant for command class READ.

CMD_CLS_CREATE

public static final int CMD_CLS_CREATE
Symbolic constant for command class CREATE.

CMD_CLS_USE_KEY

public static final int CMD_CLS_USE_KEY
Symbolic constant for command class USE KEY

CMD_CLS_DELETE

public static final int CMD_CLS_DELETE
Symbolic constant for command class DELETE.

CMD_CLS_IMPORT_KEY

public static final int CMD_CLS_IMPORT_KEY
Symbolic constant for command class IMPORT KEY

CMD_CLS_INVALIDATE

public static final int CMD_CLS_INVALIDATE
Symbolic constant for command class INVALIDATE.

CMD_CLS_REHABILITATE

public static final int CMD_CLS_REHABILITATE
Symbolic constant for command class REHABILITATE.

NO_OF_COMMAND_CLASSES

protected static final int NO_OF_COMMAND_CLASSES
Symbolic constant for the number of command classes. If new cards with more command classes have to be supported, remove the static attribute and the initializer. Initialize in the constructors, and add a constructor with an argument that specifies the number of command classes.

access_parser

protected MFCLazyAccessParser access_parser
The parser that decodes the encoded access conditions.
See Also:
AccessInformation.encoded_conditions
Method Detail

parseAccessConditions

protected AccessConditions parseAccessConditions(byte[] encoded,
                                                 int offset,
                                                 int cmdclass)
Overrides:
parseAccessConditions in class AccessInformation