public class FingerprintWithMorpho
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
FingerprintWithMorpho.EnrollCallBack
采集指纹回调接口
acquire fingerprint call-back contact |
static interface |
FingerprintWithMorpho.IdentificationCallBack
验证指纹的回调接口
call-back contact for fingerprint verification |
static interface |
FingerprintWithMorpho.PtCaptureCallBack
设置获取指纹模版回调接口
setup fingerprint template acquire call-back contact |
| Modifier and Type | Method and Description |
|---|---|
boolean |
free()
释放指纹模块
free fingerprint module |
static FingerprintWithMorpho |
getInstance()
获取指纹模块操作实例
acquire fingerprint module operation eample |
java.lang.String |
getMorphoDescriptor() |
java.lang.String |
getMorphoPIDSN()
获取指纹版本
acquire fingerprint version |
boolean |
init()
初始化指纹模块
Initialize fingerprint module |
boolean |
isPowerOn()
判断设备是否上电
Judge the device is powered on or not. |
boolean |
morphoEraseAllBase()
删除所有指纹信息
delete all fingerprint infor |
void |
setIdentificationCallBack(FingerprintWithMorpho.IdentificationCallBack callBack)
设置指纹验证回调接口
setup fingerprint verification call-back contact |
boolean |
setMorphoLoadKs(byte[] keybuf)
设置加密数据秘钥
Setup encypted data key |
void |
setPtCaptureCallBack(FingerprintWithMorpho.PtCaptureCallBack callBack)
设置获取指纹模版回调接口
Setup call-back contact for acquiring fingerprint template |
void |
setPtEnrollCallBack(FingerprintWithMorpho.EnrollCallBack callBack)
设置采集指纹回调接口
setup fingerprint acquire call-back contact |
void |
startEnroll(int id,
java.lang.String name)
开始采集指纹,注意:请调用
Start acquire fingerprint, attention: call out setPtEnrollCallBack(EnrollCallBack callBack) 方法设置接收回调数据setPtEnrollCallBack(EnrollCallBack callBack) setup receive call-back data |
void |
startIdentification()
开始验证指纹,注意:请调用
Start verify fingerprint, attention: call-out setIdentificationCallBack(IdentificationCallBack callBack) 方法设置接收回调数据setIdentificationCallBack(IdentificationCallBack callBack) setup receive call-back data |
void |
startPtCapture(boolean encryptflag)
开始获取指纹模版,注意:请调用
Start acquire fingerprint template, attention: call out setPtCaptureCallBack(PtCaptureCallBack callBack) 方法设置接收回调数据setPtCaptureCallBack(PtCaptureCallBack callBack) setup receive call-back data |
boolean |
stopEnroll() |
boolean |
stopIdentification() |
boolean |
stopPtCapture() |
public void setPtCaptureCallBack(FingerprintWithMorpho.PtCaptureCallBack callBack)
callBack - 回调方法public void setPtEnrollCallBack(FingerprintWithMorpho.EnrollCallBack callBack)
callBack - 回调方法public void setIdentificationCallBack(FingerprintWithMorpho.IdentificationCallBack callBack)
callBack - 回调方法public static FingerprintWithMorpho getInstance() throws ConfigurationException
ConfigurationException - 配置错误异常public boolean init()
public boolean free()
public boolean stopPtCapture()
public boolean stopEnroll()
public boolean stopIdentification()
public void startPtCapture(boolean encryptflag)
setPtCaptureCallBack(PtCaptureCallBack callBack) 方法设置接收回调数据setPtCaptureCallBack(PtCaptureCallBack callBack) setup receive call-back datapublic void startEnroll(int id,
java.lang.String name)
setPtEnrollCallBack(EnrollCallBack callBack) 方法设置接收回调数据setPtEnrollCallBack(EnrollCallBack callBack) setup receive call-back datapublic void startIdentification()
setIdentificationCallBack(IdentificationCallBack callBack) 方法设置接收回调数据setIdentificationCallBack(IdentificationCallBack callBack) setup receive call-back datapublic java.lang.String getMorphoDescriptor()
public boolean setMorphoLoadKs(byte[] keybuf)
keybuf - 秘钥public java.lang.String getMorphoPIDSN()
public boolean morphoEraseAllBase()
public boolean isPowerOn()