Java Card 2.1 Platform
Final Revision 1.0

javacard.framework
Interface ISO7816


public abstract interface ISO7816

ISO7816 encapsulates constants related to ISO 7816-3 and ISO 7816-4. ISO7816 interface contains only static fields.

The static fields with SW_ prefixes define constants for the ISO 7816-4 defined response status word. The fields which use the _00 suffix require the low order byte to be customized appropriately e.g (ISO7816.SW_CORRECT_LENGTH_00 + (0x0025 & 0xFF)).

The static fields with OFFSET_ prefixes define constants to be used to index into the APDU buffer byte array to access ISO 7816-4 defined header information.


Field Summary
static byte CLA_ISO7816
          APDU command CLA : ISO 7816 = 0x00
static byte INS_EXTERNAL_AUTHENTICATE
          APDU command INS : EXTERNAL AUTHENTICATE = 0x82
static byte INS_SELECT
          APDU command INS : SELECT = 0xA4
static byte OFFSET_CDATA
          APDU command data offset : CDATA = 5
static byte OFFSET_CLA
          APDU header offset : CLA = 0
static byte OFFSET_INS
          APDU header offset : INS = 1
static byte OFFSET_LC
          APDU header offset : LC = 4
static byte OFFSET_P1
          APDU header offset : P1 = 2
static byte OFFSET_P2
          APDU header offset : P2 = 3
static short SW_APPLET_SELECT_FAILED
          Response status : Applet selection failed = 0x6999;
static short SW_BYTES_REMAINING_00
          Response status : Response bytes remaining = 0x6100
static short SW_CLA_NOT_SUPPORTED
          Response status : CLA value not supported = 0x6E00
static short SW_COMMAND_NOT_ALLOWED
          Response status : Command not allowed (no current EF) = 0x6986
static short SW_CONDITIONS_NOT_SATISFIED
          Response status : Conditions of use not satisfied = 0x6985
static short SW_CORRECT_LENGTH_00
          Response status : Correct Expected Length (Le) = 0x6C00
static short SW_DATA_INVALID
          Response status : Data invalid = 0x6984
static short SW_FILE_FULL
          Response status : Not enough memory space in the file = 0x6A84
static short SW_FILE_INVALID
          Response status : File invalid = 0x6983
static short SW_FILE_NOT_FOUND
          Response status : File not found = 0x6A82
static short SW_FUNC_NOT_SUPPORTED
          Response status : Function not supported = 0x6A81
static short SW_INCORRECT_P1P2
          Response status : Incorrect parameters (P1,P2) = 0x6A86
static short SW_INS_NOT_SUPPORTED
          Response status : INS value not supported = 0x6D00
static short SW_NO_ERROR
          Response status : No Error = (short)0x9000
static short SW_RECORD_NOT_FOUND
          Response status : Record not found = 0x6A83
static short SW_SECURITY_STATUS_NOT_SATISFIED
          Response status : Security condition not satisfied = 0x6982
static short SW_UNKNOWN
          Response status : No precise diagnosis = 0x6F00
static short SW_WRONG_DATA
          Response status : Wrong data = 0x6A80
static short SW_WRONG_LENGTH
          Response status : Wrong length = 0x6700
static short SW_WRONG_P1P2
          Response status : Incorrect parameters (P1,P2) = 0x6B00
 

Field Detail

SW_NO_ERROR

public static final short SW_NO_ERROR
Response status : No Error = (short)0x9000

SW_BYTES_REMAINING_00

public static final short SW_BYTES_REMAINING_00
Response status : Response bytes remaining = 0x6100

SW_WRONG_LENGTH

public static final short SW_WRONG_LENGTH
Response status : Wrong length = 0x6700

SW_SECURITY_STATUS_NOT_SATISFIED

public static final short SW_SECURITY_STATUS_NOT_SATISFIED
Response status : Security condition not satisfied = 0x6982

SW_FILE_INVALID

public static final short SW_FILE_INVALID
Response status : File invalid = 0x6983

SW_DATA_INVALID

public static final short SW_DATA_INVALID
Response status : Data invalid = 0x6984

SW_CONDITIONS_NOT_SATISFIED

public static final short SW_CONDITIONS_NOT_SATISFIED
Response status : Conditions of use not satisfied = 0x6985

SW_COMMAND_NOT_ALLOWED

public static final short SW_COMMAND_NOT_ALLOWED
Response status : Command not allowed (no current EF) = 0x6986

SW_APPLET_SELECT_FAILED

public static final short SW_APPLET_SELECT_FAILED
Response status : Applet selection failed = 0x6999;

SW_WRONG_DATA

public static final short SW_WRONG_DATA
Response status : Wrong data = 0x6A80

SW_FUNC_NOT_SUPPORTED

public static final short SW_FUNC_NOT_SUPPORTED
Response status : Function not supported = 0x6A81

SW_FILE_NOT_FOUND

public static final short SW_FILE_NOT_FOUND
Response status : File not found = 0x6A82

SW_RECORD_NOT_FOUND

public static final short SW_RECORD_NOT_FOUND
Response status : Record not found = 0x6A83

SW_INCORRECT_P1P2

public static final short SW_INCORRECT_P1P2
Response status : Incorrect parameters (P1,P2) = 0x6A86

SW_WRONG_P1P2

public static final short SW_WRONG_P1P2
Response status : Incorrect parameters (P1,P2) = 0x6B00

SW_CORRECT_LENGTH_00

public static final short SW_CORRECT_LENGTH_00
Response status : Correct Expected Length (Le) = 0x6C00

SW_INS_NOT_SUPPORTED

public static final short SW_INS_NOT_SUPPORTED
Response status : INS value not supported = 0x6D00

SW_CLA_NOT_SUPPORTED

public static final short SW_CLA_NOT_SUPPORTED
Response status : CLA value not supported = 0x6E00

SW_UNKNOWN

public static final short SW_UNKNOWN
Response status : No precise diagnosis = 0x6F00

SW_FILE_FULL

public static final short SW_FILE_FULL
Response status : Not enough memory space in the file = 0x6A84

OFFSET_CLA

public static final byte OFFSET_CLA
APDU header offset : CLA = 0

OFFSET_INS

public static final byte OFFSET_INS
APDU header offset : INS = 1

OFFSET_P1

public static final byte OFFSET_P1
APDU header offset : P1 = 2

OFFSET_P2

public static final byte OFFSET_P2
APDU header offset : P2 = 3

OFFSET_LC

public static final byte OFFSET_LC
APDU header offset : LC = 4

OFFSET_CDATA

public static final byte OFFSET_CDATA
APDU command data offset : CDATA = 5

CLA_ISO7816

public static final byte CLA_ISO7816
APDU command CLA : ISO 7816 = 0x00

INS_SELECT

public static final byte INS_SELECT
APDU command INS : SELECT = 0xA4

INS_EXTERNAL_AUTHENTICATE

public static final byte INS_EXTERNAL_AUTHENTICATE
APDU command INS : EXTERNAL AUTHENTICATE = 0x82

Submit a bug or feature

Java and Java Card are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1999 Sun Microsystems, Inc.
901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
All Rights Reserved.