public class FileViewProvider.FCP
extends java.lang.Object
Note: This class is based on ISO/IEC 7816-4 FCP returned by the SELECT command as specified in ISO/IEC 7816-4 in chapter 5.3.3 (File control information) in table 12 (File control parameter data objects).
Modifier and Type | Field and Description |
---|---|
static byte |
FCPTAG_FCP_TEMPLATE
FCP template TLV tag.
|
static byte |
FCPTAG_FILE_DESCRIPTOR
FCP file descriptor TLV tag.
|
static byte |
FCPTAG_FILE_ID
FCP file ID TLV tag.
|
static byte |
FCPTAG_FILE_SIZE
FCP file size TLV tag.
|
static byte |
FCPTAG_LCS
FCP Life Cycle Status TLV tag.
|
static byte |
FCPTAG_SFI
FCP ShortFileIdentifier TLV tag.
|
static byte |
FCPTAG_TOTAL_FILE_SIZE
FCP total file size TLV tag.
|
static int |
FILESTRUCTURE_CYCLIC
EF structure: Cyclic structure, fixed size.
|
static int |
FILESTRUCTURE_LINEAR_FIXED
EF structure: Linear structure, fixed size.
|
static int |
FILESTRUCTURE_LINEAR_VARIABLE
EF structure: Linear structure, variable size.
|
static int |
FILESTRUCTURE_NO_EF
EF structure: No information given.
|
static int |
FILESTRUCTURE_TRANSPARENT
EF structure: Transparent structure.
|
static byte |
FILETYPE_DF
File type = DF.
|
static byte |
FILETYPE_EF
File type = EF.
|
static int |
LCS_CREATION_STATE
Life Cycle Status: Creation state.
|
static int |
LCS_INITIALISATION_STATE
Life Cycle Status: Initialization state.
|
static int |
LCS_NO_INFORMATION_GIVEN
Life Cycle Status: No information given.
|
static int |
LCS_OPERATIONAL_STATE_ACTIVATED
Life Cycle Status: Operational state (activated).
|
static int |
LCS_OPERATIONAL_STATE_DEACTIVATED
Life Cycle Status: Operational state (deactivated).
|
static int |
LCS_TERMINATION_STATE
Life Cycle Status: Termination state.
|
Constructor and Description |
---|
FileViewProvider.FCP(byte[] rawTlvData)
Initializes a new instance of the FCP class.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getFCP()
Returns the complete FCP as byte array.
|
int |
getFID()
Returns the file identifier of the selected file.
|
int |
getFileSize()
Returns the file size of the selected file (Number of data bytes in
the file, excluding structural information).
|
int |
getFileStructure()
Returns the structure type of the selected EF.
|
int |
getFileType()
Returns the file type of the currently selected file.
|
int |
getLCS()
Returns the life cycle state of the currently selected file.
|
int |
getMaxRecordSize()
Returns the maximum record size in case of a record based EF.
|
int |
getNumberOfRecords()
Returns the number of records stored in the EF in case of a record
based EF.
|
int |
getSFI()
Returns the short file identifier of the selected EF file.
|
int |
getTotalFileSize()
Returns the total file size of the selected file (Number of data
bytes in the file, including structural information if any).
|
public static final byte FCPTAG_FCP_TEMPLATE
public static final byte FCPTAG_FILE_SIZE
public static final byte FCPTAG_TOTAL_FILE_SIZE
public static final byte FCPTAG_FILE_DESCRIPTOR
public static final byte FCPTAG_FILE_ID
public static final byte FCPTAG_SFI
public static final byte FCPTAG_LCS
public static final byte FILETYPE_DF
public static final byte FILETYPE_EF
public static final int FILESTRUCTURE_NO_EF
public static final int FILESTRUCTURE_TRANSPARENT
public static final int FILESTRUCTURE_LINEAR_FIXED
public static final int FILESTRUCTURE_LINEAR_VARIABLE
public static final int FILESTRUCTURE_CYCLIC
public static final int LCS_NO_INFORMATION_GIVEN
public static final int LCS_CREATION_STATE
public static final int LCS_INITIALISATION_STATE
public static final int LCS_OPERATIONAL_STATE_ACTIVATED
public static final int LCS_OPERATIONAL_STATE_DEACTIVATED
public static final int LCS_TERMINATION_STATE
public FileViewProvider.FCP(byte[] rawTlvData) throws java.lang.IllegalArgumentException
rawTlvData
- The data to be used in the initialization.java.lang.IllegalArgumentException
- if the specified rawTlvData does not
contain valid FCP data.public byte[] getFCP()
Note: This method is based on the FCP control parameter as specified in ISO/IEC 7816-4 in chapter 5.3.3 (File control information) in table 12 (File control parameter data objects).
public int getFileSize()
Note: This method is based on the FCP control parameter as specified in ISO/IEC 7816-4 in chapter 5.3.3 (File control information) in table 12 (File control parameter data objects).
INFO_NOT_AVAILABLE if the information is not available.
public int getTotalFileSize()
Note: This method is based on the FCP control parameter as specified in ISO/IEC 7816-4 in chapter 5.3.3 (File control information) in table 12 (File control parameter data objects).
public int getFID()
Note: This method is based on the FCP control parameter as specified in ISO/IEC 7816-4 in chapter 5.3.3 (File control information) in table 12 (File control parameter data objects).
public int getSFI()
Note: This method is based on the FCP control parameter as specified in ISO/IEC 7816-4 in chapter 5.3.3 (File control information) in table 12 (File control parameter data objects).
public int getMaxRecordSize()
Note: This method is based on the FCP control parameter as specified in ISO/IEC 7816-4 in chapter 5.3.3 (File control information) in table 12 (File control parameter data objects).
public int getNumberOfRecords()
Note: This method is based on the FCP control parameter as specified in ISO/IEC 7816-4 in chapter 5.3.3 (File control information) in table 12 (File control parameter data objects).
public int getFileType()
Note: This method is based on the FCP control parameter as specified in ISO/IEC 7816-4 in chapter 5.3.3 (File control information) in table 12 (File control parameter data objects). The file type is based on the definition in table 14 (File descriptor byte).
public int getFileStructure()
Note: This method is based on the FCP control parameter as specified in ISO/IEC 7816-4 in chapter 5.3.3 (File control information) in table 12 (File control parameter data objects). The file type is based on the definition in table 14 (File descriptor byte).
public int getLCS()
Note: This method is based on the FCP control parameter as specified in ISO/IEC 7816-4 in chapter 5.3.3 (File control information) in table 12 (File control parameter data objects). The LCS is based on the definition in table 13 (Life cycle status byte).
SEEK for Android Copyright 2015, Giesecke & Devrient GmbH