com.pax.dal.memorycard

Interface ICardSle4442

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void close()
      下电SLE4442模块,并设置其为停止态
      Close Sle4442 module, and make it in stop status.
      void open()
      上电并复位SLE4442模块、检查模块的初始状态是否正常
      Power on and reset Sle4442 module, and check whether initial staus of the module is normal.
      byte[] readMMem(int Addr, int length)
      读取数据
      Read data.
      byte[] readProMMem()
      读取受保护数据
      Read proteceted data.
      byte[] reset()
      复位 IC卡,并返回卡的ATR
      Reset IC card and return ATR of the card.
      void updateSc(byte[] newPwd)
      更新密码
      Update password.
      void verifySc(byte[] pwd)
      验证密码
      Verify password.
      void writeMMem(int Addr, int length, byte[] dataIn)
      写入的数据
      Write data.
      void writeProMMem(int Addr, int length, byte[] dataIn)
      写入受保护数据
      Write proteceted data.
    • Method Detail

      • open

        void open()
           throws Sle4442DevException
        上电并复位SLE4442模块、检查模块的初始状态是否正常
        Power on and reset Sle4442 module, and check whether initial staus of the module is normal.
        Throws:
        Sle4442Exception
        Sle4442DevException
      • reset

        byte[] reset()
              throws Sle4442DevException
        复位 IC卡,并返回卡的ATR
        Reset IC card and return ATR of the card.
        Returns:
        返回的卡的重置信息的ATR应答
        ATR Answer To Reset information of the card.
        Throws:
        Sle4442DevException
      • readMMem

        byte[] readMMem(int Addr,
                        int length)
                 throws Sle4442DevException
        读取数据
        Read data.
        Parameters:
        Addr -
        读取的起始位置,合理取值区间为0-255.
        the start address to read, its valid range is 0~255.
        length -
        要读取的数据的长度,合法取值区间为1-256.
        the length of the data to be read, its valid range is 1~256.
        Returns:
        读取的数据
        the data has been read
        Throws:
        Sle4442DevException
      • writeMMem

        void writeMMem(int Addr,
                       int length,
                       byte[] dataIn)
                throws Sle4442DevException
        写入的数据
        Write data.
        Parameters:
        Addr -
        写入的起始地址,合法取值区间为:0-255
        the start address to write, its valid range is 0~255.
        length -
        写入数据的长度,合法取值区间为:0-255
        the length of the data to be writen, its valid range is 0~255.
        dataIn -
        数据字节长度
        number bytes of data
        Throws:
        Sle4442DevException
      • writeProMMem

        void writeProMMem(int Addr,
                          int length,
                          byte[] dataIn)
                   throws Sle4442DevException
        写入受保护数据
        Write proteceted data.
        Parameters:
        Addr -
        写入的起始地址,合法区间为:0~31
        the start address to write, its valid range is 0~31.
        length -
        要写入的数据长度,合法区间:1-32.
        the length of the data to be writen, its valid range is 1~32.
        dataIn -
        数据字节数
        number bytes of data
        Throws:
        Sle4442DevException