0

Windows SDK Java版のdigitalpersonaワンタッチを使用して指紋を照合するSOAP Webサービスメソッドを作成しようとしています。クライアント側のアプレットから機能セットを取得し、サーバー側のテンプレートと比較します。しかし、テンプレートと比較できるように、デシリアライズして機能セットを再度作成する必要があります。

検証に使用できるように機能セットを再作成する方法がわかりません。

//This is for template retrieval: (no problem here) 

       String dbTemplate = result.getString("template");
            byte[] byteArray = new byte[1];
            byteArray = hexStringToByteArray(dbTemplate);
            DPFPTemplate template = DPFPGlobal.getTemplateFactory().createTemplate();
            template.deserialize(byteArray);



            byte[] fsArray = new byte[1];
            fsArray = hexStringToByteArray(ftSet);

      //the problem is here, I've already converted it back into bytearray[] but i need to deserialize it and create the feature set again.

             featureSet.deserialise(fsArray);
            DPFPFeatureSet features = extractFeatures(sample, DPFPDataPurpose.DATA_PURPOSE_VERIFICATION);

//This is for matching features and template
            DPFPVerification matcher = DPFPGlobal.getVerificationFactory().createVerification();
            DPFPVerificationResult result1 = matcher.verify(features, template);
            if (result1.isVerified()) {

                return "The fingerprint was VERIFIED.";

            } else {
                return "The fingerprint was NOT VERIFIED.";

            }

私を助けてください。

4

1 に答える 1