-
大小: 4.91MB文件类型: .zip金币: 1下载: 0 次发布日期: 2023-11-17
- 语言: Java
- 标签: ePass1000ND ukey
资源简介
近期使用飞天诚信公司的ePass1000的USB Key做浏览器端认证,根据官方文档做了一个小java web 小demo
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
namespace ePsSample
{
class Program
{
public struct WDirInfo
{
public int lID;
public int lFlags;
public int lReserved1;
public int lReserved2;
public int lReserved3;
public int lReserved4;
public int lReserved5;
public int lReserved6;
public int lReserved7;
public int lReserved8;
public int lReserved9;
public int lReserved10;
}
public struct WFileInfo
{
public uint lID;
public uint lFlags;
public uint lFileSize;
public byte ucFileType;
public byte ucReadAccess;
public byte ucWriteAccess;
public byte ucDeleteAccess;
public byte ucCryptAccess;
public byte ucReserved1;
public byte ucReserved12;
public byte ucReserved13;
public int ucReserved14;
public int ucReserved15;
public byte ucGrantedAccess;
public byte ucReserved2;
public byte ucReserved22;
public byte ucReserved23;
public int ucReserved24;
public int ucReserved25;
public int ucReserved26;
public int ucReserved27;
}
[DllImport(“FT_ND_API.dll“)]
public static extern uint epas_CreateContext(out IntPtr hContextHandle uint ulFlags uint ulApiVersion);
[DllImport(“FT_ND_API.dll“)]
public static extern uint epas_OpenDevice(IntPtr hContextHandle uint ulQueryType IntPtr pQueryData);
[DllImport(“FT_ND_API.dll“)]
public static extern uint epas_GetProperty(IntPtr hContextHandle uint ulFlags IntPtr pRefData byte[] pPropData uint ulPropSize);
[DllImport(“FT_ND_API.dll“)]
public static extern uint epas_CreateDir(IntPtr hContextHandle uint ulFlags String pucName String pucGuid ref WDirInfo pDirInfo uint ulSizeOfDirInfo);
[DllImport(“FT_ND_API.dll“)]
public static extern uint epas_ChangeDir(IntPtr hContextHandle uint ulFlags uint ulDirID String pucDirName);
[DllImport(“FT_ND_API.dll“)]
public static extern uint epas_GetCurrentDir(IntPtr hContextHandle uint ulFlags int[] pulPath uint ulMaxLevels out uint pulRetLevels);
[DllImport(“FT_ND_API.dll“)]
public static extern uint epas_DeleteDir(IntPtr hContextHandle uint ulFlags uint ulDirID String pucName);
[DllImport(“FT_ND_API.dll“)]
public static extern uint epas_CreateFile(IntPtr hContextHandle uint ulFlags ref WFileInfo pFileInfo uint ulSizeOfFileInfo);
[DllImport(“FT_ND_API.dll“)]
public static extern uint epas_GetFileInfo(IntPtr hContextHandle uint ulFla
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-11-02 15:28 epass1000ND-V2.4-20121023\
目录 0 2017-11-03 14:29 epass1000ND-V2.4-20121023\Docs\
文件 11760 2012-10-23 12:13 epass1000ND-V2.4-20121023\Docs\License_en.rtf
文件 152566 2012-10-23 12:13 epass1000ND-V2.4-20121023\Docs\ePass1000NDAPI.chm
文件 15453 2017-11-03 14:29 epass1000ND-V2.4-20121023\Docs\ePass1000NDAPI.chw
文件 292835 2012-10-24 15:50 epass1000ND-V2.4-20121023\Docs\ePass1000ND_Console Editor_C.pdf
文件 224319 2012-10-24 15:50 epass1000ND-V2.4-20121023\Docs\ePass1000ND_Hardware_Desc
文件 294077 2012-10-24 15:50 epass1000ND-V2.4-20121023\Docs\ePass1000ND_Introduction_C.pdf
文件 440 2012-10-23 12:13 epass1000ND-V2.4-20121023\Docs\readme.zh-cn.txt
目录 0 2017-11-02 15:28 epass1000ND-V2.4-20121023\Include\
文件 16134 2012-10-23 12:13 epass1000ND-V2.4-20121023\Include\FT_ND_API.h
文件 199 2012-10-23 12:13 epass1000ND-V2.4-20121023\Include\readme.zh-cn.txt
目录 0 2017-11-02 15:28 epass1000ND-V2.4-20121023\Lib\
目录 0 2017-11-02 15:28 epass1000ND-V2.4-20121023\Lib\lib_x64\
文件 402320 2012-10-23 12:13 epass1000ND-V2.4-20121023\Lib\lib_x64\FT_ND_API.dll
文件 8858 2012-10-23 12:13 epass1000ND-V2.4-20121023\Lib\lib_x64\FT_ND_API.lib
文件 132496 2012-10-23 12:13 epass1000ND-V2.4-20121023\Lib\lib_x64\FT_ND_FULL.dll
文件 374160 2012-10-23 12:13 epass1000ND-V2.4-20121023\Lib\lib_x64\FT_ND_MOD.dll
文件 121232 2012-10-23 12:13 epass1000ND-V2.4-20121023\Lib\lib_x64\FT_ND_SC.dll
文件 82832 2012-10-23 12:13 epass1000ND-V2.4-20121023\Lib\lib_x64\JePs1knd.dll
目录 0 2017-11-03 16:54 epass1000ND-V2.4-20121023\Lib\lib_x64\java\
目录 0 2017-11-03 14:37 epass1000ND-V2.4-20121023\Lib\lib_x64\java\epas1kndjni\
文件 507 2012-10-23 12:13 epass1000ND-V2.4-20121023\Lib\lib_x64\java\epas1kndjni\CHash.class
文件 3128 2012-10-23 12:13 epass1000ND-V2.4-20121023\Lib\lib_x64\java\epas1kndjni\CePass.class
文件 170 2012-10-23 12:13 epass1000ND-V2.4-20121023\Lib\lib_x64\java\epas1kndjni\IHash.class
文件 1149 2012-10-23 12:13 epass1000ND-V2.4-20121023\Lib\lib_x64\java\epas1kndjni\IePass.class
文件 885 2012-10-23 12:13 epass1000ND-V2.4-20121023\Lib\lib_x64\java\epas1kndjni\RTException.class
文件 580 2012-10-23 12:13 epass1000ND-V2.4-20121023\Lib\lib_x64\java\epas1kndjni\WAccessInfo.class
文件 452 2012-10-23 12:13 epass1000ND-V2.4-20121023\Lib\lib_x64\java\epas1kndjni\WDirInfo.class
文件 577 2012-10-23 12:13 epass1000ND-V2.4-20121023\Lib\lib_x64\java\epas1kndjni\WFileInfo.class
文件 450 2012-10-23 12:13 epass1000ND-V2.4-20121023\Lib\lib_x64\java\epas1kndjni\WSysInfo.class
............此处省略162个文件信息
评论
共有 条评论