HK1246038B - Methods and devices for identity registration and identity authentication based on biological features - Google Patents
Methods and devices for identity registration and identity authentication based on biological features Download PDFInfo
- Publication number
- HK1246038B HK1246038B HK18105220.1A HK18105220A HK1246038B HK 1246038 B HK1246038 B HK 1246038B HK 18105220 A HK18105220 A HK 18105220A HK 1246038 B HK1246038 B HK 1246038B
- Authority
- HK
- Hong Kong
- Prior art keywords
- authentication
- biometric
- business
- server
- request message
- Prior art date
Links
Description
技术领域Technical Field
本申请涉及网络通信技术领域,尤其涉及一种基于生物特征的身份注册方法和装置、一种基于生物特征的身份认证方法和装置。The present application relates to the field of network communication technology, and in particular to a method and device for identity registration based on biometrics, and a method and device for identity authentication based on biometrics.
背景技术Background Art
随着生物识别技术的发展,通过计算机与光学、声学、生物传感器和生物统计学等技术手段的结合,利用人体固有的指纹、人脸、虹膜、声音等生理特性进行个人身份的鉴定,已经成为可能。With the development of biometric technology, it has become possible to identify personal identity by combining computers with optics, acoustics, biosensors, biostatistics and other technical means, using the human body's inherent physiological characteristics such as fingerprints, faces, irises, and voices.
移动互联的蓬勃发展为生物识别技术提供了新的应用平台,例如采用指纹、人脸等在用户设备上可以登录账户、实现支付,而无需记忆并输入密码。由于更倾向于采用生物识别来进行身份认证的通常是移动支付等关键应用,因此安全性成为注册和认证过程中需要最为优先考虑的重要因素。The booming mobile internet has provided a new platform for biometric technology applications. For example, fingerprints and facial recognition can be used to log in to accounts and make payments on user devices, eliminating the need to remember and enter passwords. Since biometric authentication is often used for critical applications such as mobile payments, security becomes a top priority during the registration and authentication process.
发明内容Summary of the Invention
有鉴于此,本申请提供一种基于生物特征的身份注册方法,应用在用户设备上,所述用户设备上运行有业务客户端、生物认证中间件、生物认证客户端、身份认证检验器和令牌及密钥管理器,所述方法包括:In view of this, the present application provides a biometric identity registration method, which is applied on a user device. The user device runs a service client, biometric authentication middleware, a biometric authentication client, an identity authentication verifier, and a token and key manager. The method includes:
业务客户端向生物认证中间件发起设备信息请求,生物认证中间件将所述设备信息请求转发给生物认证客户端,生物认证客户端将所述设备信息请求转发给身份认证检验器,身份认证检验器获取所述用户设备包括设备标识的设备信息并将所述设备信息携带在设备信息响应中返回给生物认证客户端,生物认证客户端将所述设备信息响应返回给生物认证中间件,生物认证中间件将所述设备信息响应返回给业务客户端;The service client initiates a device information request to the biometric authentication middleware. The biometric authentication middleware forwards the device information request to the biometric authentication client. The biometric authentication client forwards the device information request to the identity authentication verifier. The identity authentication verifier obtains the device information of the user device including the device identifier and returns the device information to the biometric authentication client in a device information response. The biometric authentication client returns the device information response to the biometric authentication middleware. The biometric authentication middleware returns the device information response to the service client.
业务客户端向业务服务器发送包括业务账户标识的注册信息请求报文,接收业务服务器返回的注册信息响应报文;所述注册信息响应报文由认证服务器采用服务器私钥签名后发送给业务服务器,其中包括认证服务器在收到业务服务器转发的注册信息请求报文后生成的对应于所述业务账户标识的虚拟账户标识、与所述服务器私钥相对应的服务器公钥;The service client sends a registration information request message including a service account identifier to the service server, and receives a registration information response message returned by the service server; the registration information response message is signed by the authentication server using the server private key and sent to the service server. The message includes a virtual account identifier corresponding to the service account identifier, generated by the authentication server after receiving the registration information request message forwarded by the service server, and a server public key corresponding to the server private key;
业务客户端确定用户的生物认证类型,获取所述生物认证类型的用户的生物数据,将生物数据携带在本地生物认证请求中发送给生物认证中间件,生物认证中间件将所述本地生物认证请求转发给生物认证客户端,生物认证客户端利用所述生物数据对用户身份进行生物特征校验并将校验结果在本地生物认证响应中返回给生物认证中间件,生物认证中间件将所述本地生物认证响应返回给业务客户端;The service client determines the biometric authentication type of the user, obtains biometric data of the user of the biometric authentication type, and sends the biometric data to the biometric authentication middleware in a local biometric authentication request. The biometric authentication middleware forwards the local biometric authentication request to the biometric authentication client. The biometric authentication client uses the biometric data to perform biometric feature verification on the user's identity and returns the verification result to the biometric authentication middleware in a local biometric authentication response. The biometric authentication middleware returns the local biometric authentication response to the service client.
在本地生物特征校验结果为通过时,业务客户端将注册信息响应报文发送给生物认证中间件,生物认证中间件将所述注册信息响应报文转发给生物认证客户端;生物认证客户端将所述注册信息响应报文转发给身份认证检验器,身份认证检验器采用所述服务器公钥对注册信息响应报文进行验签,在验签通过后从令牌及密钥管理器获取与用户最近一次通过本地生物校验时所采用生物数据对应的生物特征令牌,生成相对应的业务公钥和业务私钥,保存虚拟账户标识、生物认证类型、生物认证令牌和业务私钥的对应关系;身份认证检验器将设备标识、虚拟账户标识、生物认证类型、生物特征令牌和业务公钥封装在注册请求报文中,并交由令牌及密钥管理器采用所述用户设备的设备私钥对注册请求报文进行签名后,将注册请求报文返回给生物认证客户端,生物认证客户端将所述注册请求报文返回给生物认证中间件,生物认证中间件将所述注册请求报文返回给业务客户端;When the local biometric verification result is passed, the business client sends a registration information response message to the biometric authentication middleware, and the biometric authentication middleware forwards the registration information response message to the biometric authentication client; the biometric authentication client forwards the registration information response message to the identity authentication verifier, and the identity authentication verifier uses the server public key to verify the signature of the registration information response message. After the signature verification is passed, it obtains the biometric token corresponding to the biometric data used when the user passed the local biometric verification most recently from the token and key manager, generates the corresponding business public key and business private key, and saves the correspondence between the virtual account identifier, biometric authentication type, biometric authentication token and business private key; the identity authentication verifier encapsulates the device identifier, virtual account identifier, biometric authentication type, biometric token and business public key in a registration request message, and hands it over to the token and key manager to sign the registration request message with the device private key of the user device, and then returns the registration request message to the biometric authentication client, the biometric authentication client returns the registration request message to the biometric authentication middleware, and the biometric authentication middleware returns the registration request message to the business client;
业务客户端将所述注册请求报文发送业务服务器,所述注册请求报文由业务服务器转发给认证服务器,供认证服务器在交由生物认证中心服务器采用所述用户设备的设备公钥进行验签后,保存所述设备标识、虚拟账户标识、生物认证类型、生物特征令牌和业务公钥的对应关系,以用来对所述账户进行身份认证。The business client sends the registration request message to the business server, and the business server forwards the registration request message to the authentication server. After the authentication server verifies the signature using the device public key of the user device through the biometric authentication center server, it saves the correspondence between the device identifier, virtual account identifier, biometric authentication type, biometric token and business public key for use in identity authentication of the account.
本申请提供的一种基于生物特征的身份注册方法,应用在认证服务器上,包括:This application provides a biometric identity registration method, which is applied on an authentication server and includes:
从业务服务器接收来自用户设备的注册信息请求报文,所述注册信息请求报文中包括业务账户标识;生成对应于所述业务账户标识的虚拟账户标识,将虚拟账户标识和服务器公钥封装在注册信息响应报文中,采用与所述服务器公钥相对应的服务器私钥对注册信息响应报文签名后,发送给业务服务器,供业务服务器将注册信息响应报文转发给用户设备;receiving, from a service server, a registration information request message from a user device, the registration information request message including a service account identifier; generating a virtual account identifier corresponding to the service account identifier, encapsulating the virtual account identifier and the server public key in a registration information response message, signing the registration information response message with a server private key corresponding to the server public key, and sending the registration information response message to the service server, for the service server to forward the registration information response message to the user device;
从业务服务器接收来自用户设备的注册请求报文,所述注册请求报文中包括用户设备的设备标识、虚拟账户标识、生物认证类型、生物特征令牌和业务公钥,并采用所述用户设备的设备密钥进行签名;将所述注册请求报文发送给生物认证中心服务器,接收生物认证中心服务器采用所述设备标识对应的设备公钥对注册请求报文进行验签后返回的验签结果;Receive a registration request message from a user device from a service server, the registration request message including the user device's device identifier, virtual account identifier, biometric authentication type, biometric token, and service public key, and signed using the user device's device key; send the registration request message to a biometric authentication center server, and receive a signature verification result returned by the biometric authentication center server after verifying the registration request message using the device public key corresponding to the device identifier;
在注册请求报文通过验签后,保存所述设备标识、虚拟账户标识、生物认证类型、生物特征令牌和业务公钥的对应关系,以用来对所述账户进行身份认证。After the registration request message passes the signature verification, the corresponding relationship between the device identifier, virtual account identifier, biometric authentication type, biometric token and business public key is saved to be used for identity authentication of the account.
本申请提供的一种基于生物特征的身份认证方法,应用在用户设备上,所述用户设备上运行有业务客户端、生物认证中间件、生物认证客户端、身份认证检验器和令牌及密钥管理器,包括:This application provides a biometric identity authentication method, which is applied to a user device. The user device runs a service client, biometric authentication middleware, a biometric authentication client, an identity authentication verifier, and a token and key manager, including:
业务客户端向生物认证中间件发起设备信息请求,生物认证中间件将所述设备信息请求转发给生物认证客户端,生物认证客户端将所述设备信息请求转发给身份认证检验器,身份认证检验器获取所述用户设备包括设备标识的设备信息并将所述设备信息携带在设备信息响应中返回给生物认证客户端,生物认证客户端将所述设备信息响应返回给生物认证中间件,生物认证中间件将所述设备信息响应返回给业务客户端;The service client initiates a device information request to the biometric authentication middleware. The biometric authentication middleware forwards the device information request to the biometric authentication client. The biometric authentication client forwards the device information request to the identity authentication verifier. The identity authentication verifier obtains the device information of the user device including the device identifier and returns the device information to the biometric authentication client in a device information response. The biometric authentication client returns the device information response to the biometric authentication middleware. The biometric authentication middleware returns the device information response to the service client.
业务客户端向业务服务器发送包括设备标识的认证信息请求报文,接收业务服务器返回的认证信息响应报文;所述认证信息响应报文由认证服务器采用服务器私钥签名后发送给业务服务器,其中包括认证服务器在收到业务服务器转发的认证信息请求报文后获取的与所述设备标识对应的虚拟账户标识、和与所述服务器私钥相对应的服务器公钥;The service client sends an authentication information request message including a device identifier to the service server, and receives an authentication information response message returned by the service server; the authentication information response message is signed by the authentication server using the server private key and sent to the service server, and includes the virtual account identifier corresponding to the device identifier and the server public key corresponding to the server private key, which the authentication server obtained after receiving the authentication information request message forwarded by the service server;
业务客户端获取注册时所采用生物认证类型的用户的生物数据,将生物数据携带在本地生物认证请求中发送给生物认证中间件,生物认证中间件将所述本地生物认证请求转发给生物认证客户端,生物认证客户端利用所述生物数据对用户身份进行生物特征校验并将校验结果在本地生物认证响应中返回给生物认证中间件,生物认证中间件将所述本地生物认证响应返回给业务客户端;The service client obtains the biometric data of the user of the biometric authentication type adopted during registration, carries the biometric data in a local biometric authentication request and sends it to the biometric authentication middleware. The biometric authentication middleware forwards the local biometric authentication request to the biometric authentication client. The biometric authentication client uses the biometric data to perform biometric feature verification on the user's identity and returns the verification result to the biometric authentication middleware in a local biometric authentication response. The biometric authentication middleware returns the local biometric authentication response to the service client.
在本地生物特征校验结果为通过时,业务客户端将认证信息响应报文发送给生物认证中间件,生物认证中间件将所述认证信息响应报文转发给生物认证客户端;生物认证客户端将所述认证信息响应报文转发给身份认证检验器,身份认证检验器采用所述服务器公钥对认证信息响应报文进行验签,在验签通过后从令牌及密钥管理器获取与用户最近一次通过本地生物校验时所采用生物数据对应的生物特征令牌,在保存的虚拟账户标识、生物认证类型、生物特征令牌、和业务私钥的对应关系中获取与所述生物认证类型、认证信息响应报文中的虚拟账户标识和生物特征令牌对应的业务私钥,将设备标识、虚拟账户标识、生物认证类型和生物特征令牌封装在认证请求报文中,并采用业务私钥对认证请求报文签名后,返回给生物认证客户端;生物认证客户端将所述认证请求报文返回给生物认证中间件,生物认证中间件将所述认证请求报文返回给业务客户端;When the local biometric verification result is passed, the business client sends the authentication information response message to the biometric authentication middleware, and the biometric authentication middleware forwards the authentication information response message to the biometric authentication client; the biometric authentication client forwards the authentication information response message to the identity authentication verifier, and the identity authentication verifier uses the server public key to verify the signature of the authentication information response message. After the signature verification is passed, the identity authentication verifier obtains the biometric token corresponding to the biometric data used when the user passed the local biometric verification for the last time from the token and key manager, obtains the business private key corresponding to the biometric authentication type, the virtual account identifier and the biometric token in the authentication information response message from the saved correspondence between the virtual account identifier, the biometric authentication type, the biometric token, and the business private key, encapsulates the device identifier, the virtual account identifier, the biometric authentication type and the biometric token in the authentication request message, and signs the authentication request message with the business private key, and returns it to the biometric authentication client; the biometric authentication client returns the authentication request message to the biometric authentication middleware, and the biometric authentication middleware returns the authentication request message to the business client;
业务客户端将所述认证请求报文发送业务服务器,所述认证请求报文由业务服务器转发给认证服务器,供认证服务器根据与虚拟账户标识、设备标识和生物认证类型对应的已注册生物特征令牌和已注册业务公钥对用户进行身份认证。The business client sends the authentication request message to the business server, which forwards the authentication request message to the authentication server for the authentication server to authenticate the user based on the registered biometric token and registered business public key corresponding to the virtual account identifier, device identifier and biometric authentication type.
本申请提供的一种基于生物特征的身份认证方法,应用在认证服务器上,包括:This application provides a biometric identity authentication method, which is applied on an authentication server and includes:
从业务服务器接收来自用户设备的认证信息请求报文,所述认证信息请求报文中包括用户设备的设备标识;获取对应于所述设备标识的虚拟账户标识,将虚拟账户标识和服务器公钥封装在认证信息响应报文中,采用与所述服务器公钥相对应的服务器私钥对认证信息响应报文签名后,发送给业务服务器,供业务服务器将认证信息响应报文转发给用户设备;Receive an authentication information request message from a user device from a service server, the authentication information request message including a device identifier of the user device; obtain a virtual account identifier corresponding to the device identifier, encapsulate the virtual account identifier and the server public key in an authentication information response message, sign the authentication information response message using a server private key corresponding to the server public key, and send the signature to the service server, for the service server to forward the authentication information response message to the user device;
从业务服务器接收来自用户设备的认证请求报文,所述认证请求报文中包括用户设备的设备标识、虚拟账户标识、生物认证类型和生物特征令牌,并采用业务公钥进行签名;获取与认证请求报文中的设备标识、虚拟账户标识和生物认证类型对应的已注册生物特征令牌和已注册业务公钥;Receive an authentication request message from a user device from a service server, the authentication request message including the user device's device identifier, virtual account identifier, biometric authentication type, and biometric token, and signed with a service public key; obtain a registered biometric token and a registered service public key corresponding to the device identifier, virtual account identifier, and biometric authentication type in the authentication request message;
采用已注册业务公钥对认证请求报文进行验签,并根据认证请求报文中的生物特征令牌和已注册生物特征令牌对用户进行身份认证。The registered business public key is used to verify the signature of the authentication request message, and the user's identity is authenticated based on the biometric token in the authentication request message and the registered biometric token.
本申请还提供了一种基于生物特征的身份注册装置,应用在用户设备上,包括:This application also provides a biometric identity registration device, which is applied to a user device and includes:
业务客户端,用于向生物认证中间件发起设备信息请求,接收生物认证中间件返回的带有设备标识的设备信息响应;向业务服务器发送包括业务账户标识的注册信息请求报文,接收业务服务器返回的注册信息响应报文;所述注册信息响应报文由认证服务器采用服务器私钥签名后发送给业务服务器,其中包括认证服务器在收到业务服务器转发的注册信息请求报文后生成的对应于所述业务账户标识的虚拟账户标识、与所述服务器私钥相对应的服务器公钥;确定用户的生物认证类型,获取所述生物认证类型的用户的生物数据,将生物数据携带在本地生物认证请求中发送给生物认证中间件,接收生物认证中间件返回的带有本地生物校验结果的本地生物认证响应;在本地生物特征校验结果为通过时,将注册信息响应报文发送给生物认证中间件,接收生物认证中间件返回的注册请求报文,所述注册请求报文包括设备标识、虚拟账户标识、生物认证类型、生物特征令牌和业务公钥,并采用所述用户设备的设备私钥进行签名;将注册请求报文发送给业务服务器,所述注册请求报文由业务服务器转发给认证服务器,供认证服务器在交由生物认证中心服务器采用所述用户设备的设备公钥进行验签后,保存所述设备标识、虚拟账户标识、生物认证类型、生物特征令牌和业务公钥的对应关系,以用来对所述账户进行身份认证;The business client is used to initiate a device information request to the biometric authentication middleware and receive a device information response with a device identifier returned by the biometric authentication middleware; send a registration information request message including a business account identifier to the business server and receive a registration information response message returned by the business server; the registration information response message is signed by the authentication server using the server private key and sent to the business server, including a virtual account identifier corresponding to the business account identifier and a server public key corresponding to the server private key generated by the authentication server after receiving the registration information request message forwarded by the business server; determine the user's biometric authentication type, obtain the biometric data of the user of the biometric authentication type, carry the biometric data in the local biometric authentication request and send it to the biometric authentication middleware, and receive the biometric authentication middleware. Returning a local biometric authentication response with a local biometric verification result; when the local biometric verification result is passed, sending a registration information response message to the biometric authentication middleware, receiving a registration request message returned by the biometric authentication middleware, wherein the registration request message includes a device identifier, a virtual account identifier, a biometric authentication type, a biometric token, and a business public key, and is signed with the device private key of the user device; sending the registration request message to the business server, which is forwarded by the business server to the authentication server, for the authentication server to save the corresponding relationship between the device identifier, virtual account identifier, biometric authentication type, biometric token, and business public key after handing it over to the biometric authentication center server for signature verification using the device public key of the user device, so as to authenticate the account;
生物认证中间件,用于从业务客户端接收并向生物认证客户端转发设备信息请求,从生物认证客户端接收并向业务客户端转发设备信息响应;从业务客户端接收并向生物认证客户端转发本地生物认证请求,从生物认证客户端接收并向业务客户端转发本地生物认证响应;从业务客户端接收并向生物认证客户端转发注册信息响应报文,从生物认证客户端接收并向业务客户端转发注册请求报文;Biometric authentication middleware, configured to receive and forward device information requests from a business client and forward device information responses from a biometric authentication client to a business client; receive and forward local biometric authentication requests from a business client and forward local biometric authentication responses from a biometric authentication client to a business client; receive and forward registration information response messages from a business client and forward registration request messages from a biometric authentication client to a business client;
生物认证客户端,用于从生物认证中间件接收并向身份认证检验器转发设备信息请求,从身份认证检验器接收并向生物认证中间件转发设备信息响应;从生物认证中间件接收本地生物认证请求,利用本地生物认证请求中的生物数据对用户身份进行生物特征校验并将校验结果在本地生物认证响应中返回给生物认证中间件;从生物认证中间件接收并向身份认证检验器转发注册信息响应报文,从身份认证检验器接收并向生物认证中间件转发注册请求报文;The biometric authentication client is configured to receive and forward device information requests from the biometric authentication middleware to the identity authentication verifier, and to receive and forward device information responses from the identity authentication verifier to the biometric authentication middleware; receive local biometric authentication requests from the biometric authentication middleware, perform biometric feature verification of the user's identity using the biometric data in the local biometric authentication request, and return the verification result to the biometric authentication middleware in the local biometric authentication response; receive and forward registration information response messages from the biometric authentication middleware to the identity authentication verifier, and receive and forward registration request messages from the identity authentication verifier to the biometric authentication middleware;
身份认证检验器,用于在收到生物认证客户端转发的设备信息请求后,获取所述用户设备包括设备标识的设备信息并将所述设备信息携带在设备信息响应中返回给生物认证客户端;在收到生物认证客户端转发的注册信息响应报文后,采用注册信息响应报文中的服务器公钥对注册信息响应报文进行验签,在验签通过后从令牌及密钥管理器获取与用户最近一次通过本地生物校验时所采用生物数据对应的生物特征令牌,生成相对应的业务公钥和业务私钥,保存虚拟账户标识、生物认证类型、生物认证令牌和业务私钥的对应关系,将设备标识、虚拟账户标识、生物认证类型、生物特征令牌和业务公钥封装在注册请求报文中,并交由令牌及密钥管理器采用所述用户设备的设备私钥对注册请求报文进行签名后,将注册请求报文返回给生物认证客户端;The identity authentication verifier is used to, after receiving the device information request forwarded by the biometric authentication client, obtain the device information of the user device including the device identifier and return the device information to the biometric authentication client by carrying the device information in the device information response; after receiving the registration information response message forwarded by the biometric authentication client, use the server public key in the registration information response message to verify the signature of the registration information response message, obtain the biometric token corresponding to the biometric data used by the user when passing the local biometric verification for the last time from the token and key manager after the signature verification is passed, generate the corresponding business public key and business private key, save the correspondence between the virtual account identifier, biometric authentication type, biometric authentication token and business private key, encapsulate the device identifier, virtual account identifier, biometric authentication type, biometric token and business public key in the registration request message, and hand it over to the token and key manager to sign the registration request message with the device private key of the user device, and then return the registration request message to the biometric authentication client;
令牌及密钥管理器,用于向身份认证检验器提供与用户最近一次通过本地生物校验时所采用生物数据对应的生物特征令牌;在收到来自身份认证检验器的注册请求报文后采用保存的所述用户设备的设备私钥对注册请求报文进行签名后返回给身份认证检验器。The token and key manager is used to provide the identity authentication verifier with a biometric token corresponding to the biometric data used by the user when passing the local biometric verification for the last time; after receiving the registration request message from the identity authentication verifier, the registration request message is signed using the device private key of the user device stored and then returned to the identity authentication verifier.
本申请提供的一种基于生物特征的身份注册装置,应用在认证服务器上,包括:This application provides a biometric identity registration device, which is applied to an authentication server and includes:
注册信息响应单元,用于从业务服务器接收来自用户设备的注册信息请求报文,所述注册信息请求报文中包括业务账户标识;生成对应于所述业务账户标识的虚拟账户标识,将虚拟账户标识和服务器公钥封装在注册信息响应报文中,采用与所述服务器公钥相对应的服务器私钥对注册信息响应报文签名后,发送给业务服务器,供业务服务器将注册信息响应报文转发给用户设备;A registration information response unit is configured to receive a registration information request message from a user device from a service server, the registration information request message including a service account identifier; generate a virtual account identifier corresponding to the service account identifier, encapsulate the virtual account identifier and a server public key in a registration information response message, sign the registration information response message using a server private key corresponding to the server public key, and send the registration information response message to the service server, for the service server to forward the registration information response message to the user device;
注册请求接收单元,用于从业务服务器接收来自用户设备的注册请求报文,所述注册请求报文中包括用户设备的设备标识、虚拟账户标识、生物认证类型、生物特征令牌和业务公钥,并采用所述用户设备的设备密钥进行签名;将所述注册请求报文发送给生物认证中心服务器,接收生物认证中心服务器采用所述设备标识对应的设备公钥对注册请求报文进行验签后返回的验签结果;A registration request receiving unit is configured to receive a registration request message from a user device from a service server, the registration request message including the device identifier, virtual account identifier, biometric authentication type, biometric token, and service public key of the user device, and signed using the device key of the user device; send the registration request message to a biometric authentication center server, and receive a verification result returned by the biometric authentication center server after verifying the registration request message using the device public key corresponding to the device identifier;
注册信息保存单元,用于在注册请求报文通过验签后,保存所述设备标识、虚拟账户标识、生物认证类型、生物特征令牌和业务公钥的对应关系,以用来对所述账户进行身份认证。The registration information storage unit is used to save the correspondence between the device identifier, virtual account identifier, biometric authentication type, biometric token and business public key after the registration request message passes the signature verification, so as to authenticate the account.
本申请提供的一种基于生物特征的身份认证装置,应用在用户设备上,包括:This application provides a biometric identity authentication device, which is applied to a user device and includes:
业务客户端,用于向生物认证中间件发起设备信息请求,接收生物认证中间件返回的带有设备标识的设备信息响应;向业务服务器发送包括设备标识的认证信息请求报文,接收业务服务器返回的认证信息响应报文,所述认证信息响应报文由认证服务器采用服务器私钥签名后发送给业务服务器,其中包括认证服务器在收到业务服务器转发的认证信息请求报文后获取的与所述设备标识对应的虚拟账户标识、和与所述服务器私钥相对应的服务器公钥;获取注册时所采用生物认证类型的用户的生物数据,将生物数据携带在本地生物认证请求中发送给生物认证中间件,接收生物认证中间件返回的带有本地生物校验结果的本地生物认证响应;在本地生物特征校验结果为通过时,将认证信息响应报文发送给生物认证中间件,接收生物认证中间件返回的认证请求报文,所述认证请求报文包括设备标识、虚拟账户标识、生物认证类型和生物特征令牌,并采用业务私钥进行签名;将认证请求报文发送给业务服务器,所述认证请求报文由业务服务器转发给认证服务器,供认证服务器根据与虚拟账户标识、设备标识和生物认证类型对应的已注册生物特征令牌和已注册业务公钥对用户进行身份认证;The business client is used to initiate a device information request to the biometric authentication middleware and receive a device information response with a device identifier returned by the biometric authentication middleware; send an authentication information request message including a device identifier to the business server, and receive an authentication information response message returned by the business server. The authentication information response message is signed by the authentication server using the server private key and sent to the business server, including the virtual account identifier corresponding to the device identifier and the server public key corresponding to the server private key obtained by the authentication server after receiving the authentication information request message forwarded by the business server; obtain the biometric data of the user of the biometric authentication type used during registration, and send the biometric data in a local biometric authentication request. to the biometric authentication middleware, and receive a local biometric authentication response with a local biometric verification result returned by the biometric authentication middleware; when the local biometric verification result is passed, send an authentication information response message to the biometric authentication middleware, and receive an authentication request message returned by the biometric authentication middleware, wherein the authentication request message includes a device identifier, a virtual account identifier, a biometric authentication type, and a biometric token, and is signed with a business private key; send the authentication request message to the business server, and the business server forwards the authentication request message to the authentication server, so that the authentication server can authenticate the user according to the registered biometric token and the registered business public key corresponding to the virtual account identifier, the device identifier, and the biometric authentication type;
生物认证中间件,用于从业务客户端接收并向生物认证客户端转发设备信息请求,从生物认证客户端接收并向业务客户端转发设备信息响应;从业务客户端接收并向生物认证客户端转发本地生物认证请求,从生物认证客户端接收并向业务客户端转发本地生物认证响应;从业务客户端接收并向生物认证客户端转发认证信息响应报文,从生物认证客户端接收并向业务客户端转发认证请求报文;Biometric authentication middleware, configured to receive and forward device information requests from a business client and forward device information responses from a biometric authentication client to a business client; receive and forward local biometric authentication requests from a business client and forward local biometric authentication responses from a biometric authentication client to a business client; receive and forward authentication information response messages from a business client and forward authentication request messages from a biometric authentication client to a business client;
生物认证客户端,用于从生物认证中间件接收并向身份认证检验器转发设备信息请求,从身份认证检验器接收并向生物认证中间件转发设备信息响应;从生物认证中间件接收本地生物认证请求,利用本地生物认证请求中的生物数据对用户身份进行生物特征校验并将校验结果在本地生物认证响应中返回给生物认证中间件;从生物认证中间件接收并向身份认证检验器转发认证信息响应报文,从身份认证检验器接收并向生物认证中间件转发认证请求报文;The biometric authentication client is configured to receive and forward device information requests from the biometric authentication middleware to the identity authentication verifier, receive and forward device information responses from the identity authentication verifier to the biometric authentication middleware, receive local biometric authentication requests from the biometric authentication middleware, perform biometric feature verification of the user's identity using the biometric data in the local biometric authentication request, and return the verification result to the biometric authentication middleware in the local biometric authentication response, receive and forward authentication information response messages from the biometric authentication middleware to the identity authentication verifier, and receive and forward authentication request messages from the identity authentication verifier to the biometric authentication middleware.
身份认证检验器,用于在收到生物认证客户端转发的设备信息请求后,获取所述用户设备包括设备标识的设备信息并将所述设备信息携带在设备信息响应中返回给生物认证客户端;在收到生物认证客户端转发的认证信息响应报文后,采用认证信息响应报文中的服务器公钥对认证信息响应报文进行验签,在验签通过后从令牌及密钥管理器获取与用户最近一次通过本地生物校验时所采用生物数据对应的生物特征令牌,在保存的虚拟账户标识、生物认证类型、生物特征令牌、和业务私钥的对应关系中获取与所述生物认证类型、认证信息响应报文中的虚拟账户标识和生物特征令牌对应的业务私钥,将设备标识、虚拟账户标识、生物认证类型和生物特征令牌封装在认证请求报文中,并采用业务私钥对认证请求报文签名后,返回给生物认证客户端;An identity authentication verifier is configured to, after receiving a device information request forwarded by a biometric authentication client, obtain device information of the user device including a device identifier and return the device information to the biometric authentication client by carrying the device information in a device information response; after receiving an authentication information response message forwarded by the biometric authentication client, verify the signature of the authentication information response message using the server public key in the authentication information response message, obtain from the token and key manager a biometric token corresponding to the biometric data used when the user passed the most recent local biometric verification after the signature verification is passed, obtain a business private key corresponding to the biometric authentication type, the virtual account identifier in the authentication information response message, and the biometric token from the stored correspondence between the virtual account identifier, the biometric authentication type, the biometric token, and the business private key, encapsulate the device identifier, the virtual account identifier, the biometric authentication type, and the biometric token in an authentication request message, sign the authentication request message using the business private key, and then return the message to the biometric authentication client;
令牌及密钥管理器,用于向身份认证检验器提供与用户最近一次通过本地生物校验时所采用生物数据对应的生物特征令牌。The token and key manager is used to provide the identity verification device with a biometric token corresponding to the biometric data used by the user when he or she passed the local biometric verification the last time.
本申请提供的一种基于生物特征的身份认证装置,应用在认证服务器上,包括:This application provides a biometric identity authentication device, which is applied to an authentication server and includes:
认证信息响应单元,用于从业务服务器接收来自用户设备的认证信息请求报文,所述认证信息请求报文中包括用户设备的设备标识;获取对应于所述设备标识的虚拟账户标识,将虚拟账户标识和服务器公钥封装在认证信息响应报文中,采用与所述服务器公钥相对应的服务器私钥对认证信息响应报文签名后,发送给业务服务器,供业务服务器将认证信息响应报文转发给用户设备;An authentication information response unit is configured to receive an authentication information request message from a user device from a service server, the authentication information request message including a device identifier of the user device; obtain a virtual account identifier corresponding to the device identifier, encapsulate the virtual account identifier and a server public key in an authentication information response message, sign the authentication information response message using a server private key corresponding to the server public key, and send the signature to the service server, for the service server to forward the authentication information response message to the user device;
认证请求接收单元,用于从业务服务器接收来自用户设备的认证请求报文,所述认证请求报文中包括用户设备的设备标识、虚拟账户标识、生物认证类型和生物特征令牌,并采用业务公钥进行签名;获取与认证请求报文中的设备标识、虚拟账户标识和生物认证类型对应的已注册生物特征令牌和已注册业务公钥;An authentication request receiving unit is configured to receive an authentication request message from a user device from a service server, the authentication request message including the device identifier, virtual account identifier, biometric authentication type, and biometric token of the user device, and signed with a service public key; and obtain a registered biometric token and a registered service public key corresponding to the device identifier, virtual account identifier, and biometric authentication type in the authentication request message;
验签及认证单元,用于采用已注册业务公钥对认证请求报文进行验签,并根据认证请求报文中的生物特征令牌和已注册生物特征令牌对用户进行身份认证。The signature verification and authentication unit is used to verify the signature of the authentication request message using the registered business public key, and to authenticate the user based on the biometric token in the authentication request message and the registered biometric token.
由以上技术方案可见,本申请的实施例中,在身份注册时采用服务器公钥和服务器私钥来对业务服务器进行验证,采用预存在用户设备上的设备私钥和预存在服务端的设备公钥来对用户设备是否可信进行验证,使得用户设备能够安全的将其设备标识、虚拟账户标识、生物认证类型、生物特征令牌和业务公钥的对应关系注册给认证服务器,提高了身份注册过程的安全性;在身份认证时采用服务器公钥和服务器私钥来对业务服务器进行验证,采用业务私钥和已注册的业务公钥来对用户设备进行验证,并且用户设备需要提供与已注册信息匹配的设备标识、虚拟账户标识、生物认证类型和生物特征令牌才能通过认证,从而极大的增加了身份认证过程的安全性。It can be seen from the above technical solution that in the embodiment of the present application, the server public key and server private key are used to verify the business server during identity registration, and the device private key pre-stored on the user device and the device public key pre-stored on the server are used to verify whether the user device is trustworthy, so that the user device can safely register the correspondence between its device identification, virtual account identification, biometric authentication type, biometric token and business public key to the authentication server, thereby improving the security of the identity registration process; during identity authentication, the server public key and server private key are used to verify the business server, and the business private key and the registered business public key are used to verify the user device, and the user device needs to provide a device identification, virtual account identification, biometric authentication type and biometric token that match the registered information to pass the authentication, thereby greatly increasing the security of the identity authentication process.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是本申请实施例应用场景的一种网络结构图;FIG1 is a network structure diagram of an application scenario of an embodiment of the present application;
图2是本申请实施例一中一种应用在用户设备上、基于生物特征的身份注册方法的流程图;FIG2 is a flowchart of a biometric-based identity registration method applied on a user device in Example 1 of the present application;
图3是本申请实施例一中一种应用在认证服务器上、基于生物特征的身份注册方法的流程图;FIG3 is a flowchart of a biometric-based identity registration method applied on an authentication server in Example 1 of the present application;
图4是本申请实施例一中一种用户设备、业务服务器、认证服务器与生物认证中心服务器之间身份注册的交互流程图;4 is a flowchart of the interaction between a user device, a service server, an authentication server and a biometric authentication center server for identity registration in Example 1 of the present application;
图5是本申请实施例二中一种应用在用户设备上、基于生物特征的身份认证方法的流程图;FIG5 is a flowchart of a biometric-based identity authentication method applied on a user device in Example 2 of the present application;
图6是本申请实施例二中一种应用在认证服务器上、基于生物特征的身份认证方法的流程图;6 is a flowchart of a biometric-based identity authentication method applied on an authentication server in Example 2 of the present application;
图7是本申请实施例二中一种用户设备、业务服务器与认证服务器之间身份认证的交互流程图;7 is a flowchart of the interaction between a user device, a service server and an authentication server for identity authentication in Example 2 of the present application;
图8是用户设备或认证服务器的一种硬件结构图;FIG8 is a hardware structure diagram of a user device or an authentication server;
图9是本申请实施例中一种应用在用户设备上基于生物特征的身份注册装置、或一种应用在用户设备上基于生物特征的身份认证装置的逻辑结构图;FIG9 is a logical structure diagram of an identity registration device based on biometrics applied on a user device, or an identity authentication device based on biometrics applied on a user device, according to an embodiment of the present application;
图10是本申请实施例中一种应用在认证服务器上、基于生物特征的身份注册装置的逻辑结构图;FIG10 is a logical structure diagram of an identity registration device based on biometric features applied on an authentication server according to an embodiment of the present application;
图11是本申请实施例中一种应用在认证服务器上、基于生物特征的身份认证装置的逻辑结构图。FIG11 is a logical structure diagram of a biometric-based identity authentication device applied on an authentication server in an embodiment of the present application.
具体实施方式DETAILED DESCRIPTION
在基于用户设备的生物识别应用中,用户的生物数据由用户设备采集,生物识别可以在用户设备上进行,也可以由服务器进行。由于向服务器上传这些图像或视频数据往往会消耗大量的流量,本申请的实施例中,生物识别在用户设备上完成。In a biometric application based on a user device, the user's biometric data is collected by the user device, and biometric identification can be performed on the user device or by a server. Because uploading these images or video data to the server often consumes a lot of data, in the embodiments of this application, biometric identification is performed on the user device.
本申请实施例应用场景的一种网络结构如图1所示,用户设备与业务服务器、业务服务器与认证服务器之间通过通信网络相互可访问。其中,用户设备是具有生物特征识别功能的终端设备,可以是手机、平板电脑、PC(Personal Computer,个人电脑)、笔记本等设备;业务服务器用来接收用户通过用户设备发起的业务请求(包括注册和认证请求),并向用户设备发送对其请求的响应;认证服务器用来对用户账户进行身份认证;业务服务器或认证服务器可以是一个物理或逻辑服务器,也可以是由两个或两个以上分担不同职责的物理或逻辑服务器、相互协同来实现本申请实施例中业务服务器或认证服务器的各项功能。本申请实施例对用户设备、业务服务器和认证服务器的种类,以及用户设备与业务服务器之间、业务服务器与认证服务器之间通信网络的类型、协议等均不做限定。A network structure of the application scenario of the embodiment of the present application is shown in Figure 1, and the user device and the business server, and the business server and the authentication server are mutually accessible through the communication network. Among them, the user device is a terminal device with a biometric recognition function, which can be a mobile phone, tablet computer, PC (Personal Computer), notebook and other devices; the business server is used to receive business requests (including registration and authentication requests) initiated by the user through the user device, and send a response to its request to the user device; the authentication server is used to authenticate the user account; the business server or authentication server can be a physical or logical server, or it can be composed of two or more physical or logical servers that share different responsibilities and work together to realize the various functions of the business server or authentication server in the embodiment of the present application. The embodiment of the present application does not limit the types of user devices, business servers and authentication servers, as well as the types and protocols of the communication networks between user devices and business servers, and between business servers and authentication servers.
本申请的实施例一描述一种基于生物特征的身份注册方法,该方法应用在用户设备上的流程如图2所示,应用在认证服务器上的流程如图3所示。Embodiment 1 of the present application describes a biometric-based identity registration method. The process of applying the method on a user device is shown in FIG2 , and the process of applying the method on an authentication server is shown in FIG3 .
本申请的实施例中,用户设备上运行有以下功能模块:业务客户端、生物认证中间件、生物认证客户端、身份认证检验器和令牌及密钥管理器。这些功能模块可以是一个独立的软件、某个独立软件的组成部分、或软件与硬件相结合的实现,本申请的实施例对其具体实现不做限定。In the embodiments of this application, the user device runs the following functional modules: a service client, biometric authentication middleware, a biometric authentication client, an identity verification device, and a token and key manager. These functional modules can be implemented as independent software, as components of independent software, or as a combination of software and hardware. The embodiments of this application do not limit their specific implementation.
本申请的实施例中,用户设备上保存有设备私钥,由令牌及密钥管理器保存和使用;生物认证中心服务器可以从本地或其他可访问的网络存储位置获取到用户设备的设备标识与该用户设备的设备公钥的对应关系,同一个用户设备的设备私钥与设备公钥相对应。认证服务器可以通过网络访问生物认证中心服务器。设备私钥可以在设备出厂前预存在用户设备上;也可以由用户设备、生物认证中心服务器或某个其他的网络节点生成相对应的设备私钥和设备公钥后,分别交由用户设备和生物认证中心服务器保存;本申请的实施例不做限定。In the embodiment of the present application, a device private key is stored on the user device, which is stored and used by the token and key manager; the biometric authentication center server can obtain the correspondence between the device identification of the user device and the device public key of the user device from a local or other accessible network storage location, and the device private key and device public key of the same user device correspond to each other. The authentication server can access the biometric authentication center server through the network. The device private key can be pre-stored on the user device before the device leaves the factory; or the corresponding device private key and device public key can be generated by the user device, the biometric authentication center server or some other network node, and then respectively handed over to the user device and the biometric authentication center server for storage; the embodiment of the present application is not limited thereto.
在用户设备上,步骤210,业务客户端向生物认证中间件发起设备信息请求,生物认证中间件将设备信息请求转发给生物认证客户端,生物认证客户端将设备信息请求转发给身份认证检验器,身份认证检验器获取用户设备包括设备标识的设备信息并将设备信息携带在设备信息响应中返回给生物认证客户端,生物认证客户端将设备信息响应返回给生物认证中间件,生物认证中间件将设备信息响应返回给业务客户端。On the user device, in step 210, the business client initiates a device information request to the biometric authentication middleware, the biometric authentication middleware forwards the device information request to the biometric authentication client, the biometric authentication client forwards the device information request to the identity authentication verifier, the identity authentication verifier obtains the device information of the user device including the device identifier and carries the device information in the device information response and returns it to the biometric authentication client, the biometric authentication client returns the device information response to the biometric authentication middleware, and the biometric authentication middleware returns the device information response to the business client.
当用户在用户设备上的业务客户端启动利用生物特征进行身份验证的注册流程时,业务客户端向生物认证中间件发起设备信息请求,生物认证中间件将设备信息请求转发给生物认证客户端,生物认证客户端将设备信息请求转发给身份认证检验器。When a user starts a registration process using biometrics for identity authentication on a business client on a user device, the business client initiates a device information request to the biometric authentication middleware. The biometric authentication middleware forwards the device information request to the biometric authentication client, and the biometric authentication client forwards the device information request to the identity authentication verifier.
身份认证检验器获取用户设备的设备信息,其中包括设备标识,还可以包括设备型号、生产厂商等。可以采用用户设备的硬件标识来作为设备标识,例如用户设备的UUID(Universally Unique Identifier,通用唯一识别码)、MAC(Media Access Control,媒体接入控制)地址、蓝牙地址等。The identity verification device obtains the device information of the user device, including the device identifier, and may also include the device model, manufacturer, etc. The device identifier can be the user device's hardware identifier, such as the user device's UUID (Universally Unique Identifier), MAC (Media Access Control) address, Bluetooth address, etc.
身份认证检验器将所获取的设备信息携带在设备信息响应中返回给生物认证客户端,生物认证客户端将设备信息响应返回给生物认证中间件,生物认证中间件将设备信息响应返回给业务客户端。The identity authentication verifier carries the acquired device information in the device information response and returns it to the biometric authentication client. The biometric authentication client returns the device information response to the biometric authentication middleware, and the biometric authentication middleware returns the device information response to the service client.
在用户设备上,步骤220,业务客户端向业务服务器发送包括业务账户标识的注册信息请求报文,接收业务服务器返回的注册信息响应报文;注册信息响应报文由认证服务器采用服务器私钥签名后发送给业务服务器,其中包括认证服务器在收到业务服务器转发的注册信息请求报文后生成的对应于业务账户标识的虚拟账户标识、与服务器私钥相对应的服务器公钥。On the user device, in step 220, the service client sends a registration information request message including the service account identifier to the service server, and receives a registration information response message returned by the service server; the registration information response message is signed by the authentication server using the server private key and sent to the service server, and includes a virtual account identifier corresponding to the service account identifier generated by the authentication server after receiving the registration information request message forwarded by the service server, and a server public key corresponding to the server private key.
在认证服务器上,步骤310,从业务服务器接收来自用户设备的注册信息请求报文,注册信息请求报文中包括业务账户标识;生成对应于业务账户标识的虚拟账户标识,将虚拟账户标识和服务器公钥封装在注册信息响应报文中,采用与服务器公钥相对应的服务器私钥对注册信息响应报文签名后,发送给业务服务器,供业务服务器将注册信息响应报文转发给用户设备。On the authentication server, in step 310, a registration information request message is received from the service server from the user device, the registration information request message including the service account identifier; a virtual account identifier corresponding to the service account identifier is generated, the virtual account identifier and the server public key are encapsulated in a registration information response message, the registration information response message is signed with the server private key corresponding to the server public key, and then sent to the service server for the service server to forward the registration information response message to the user device.
用户设备的业务客户端向业务服务器发送注册信息请求报文,注册信息请求报文中包括业务账户标识。业务账户标识是该业务服务器上唯一对应于进行身份注册的用户账户的信息,例如可以是该业务系统中用户账户的名称、编码等等。注册信息请求报文中还可以包括用户设备的设备标识。业务服务器将注册信息请求报文转发给认证服务器。The service client of the user device sends a registration information request message to the service server. This message includes a service account identifier. This information uniquely corresponds to the user account being registered on the service server. For example, it can be the name or ID of the user account in the service system. The registration information request message may also include the device identifier of the user device. The service server forwards the registration information request message to the authentication server.
由于认证服务器可能为多个不同的业务系统提供认证服务,这些业务系统分别拥有各自的业务账户,为了避免这些业务系统中的业务账户标识有重复时导致认证服务器上难以区分不同的用户账户,认证服务器在收到注册信息请求报文后,生成对应于该业务账户(即对应于该业务系统中的该业务账户)的虚拟账户标识。虚拟账户标识在认证服务器上唯一对应于某个业务系统中的某个业务账户,本申请实施例对生成虚拟账户标识的方式不做限定,例如,可以将业务系统标识与用户在该业务系统的业务账户标识来作为虚拟账户标识;再如,可以将该业务系统的该用户账户在认证服务器上登记注册账户的数据库中的索引来作为虚拟账户标识。Since the authentication server may provide authentication services for multiple different business systems, each of these business systems has its own business account. In order to avoid duplication of business account identifiers in these business systems, which makes it difficult to distinguish different user accounts on the authentication server, the authentication server generates a virtual account identifier corresponding to the business account (i.e., corresponding to the business account in the business system) after receiving the registration information request message. The virtual account identifier uniquely corresponds to a business account in a certain business system on the authentication server. The embodiment of the present application does not limit the method of generating the virtual account identifier. For example, the business system identifier and the business account identifier of the user in the business system can be used as the virtual account identifier; for another example, the index of the user account of the business system in the database of the registered account on the authentication server can be used as the virtual account identifier.
需要说明的是,如果虚拟账户标识的生成方式不能确保对相同业务系统的相同业务账户生成同样的虚拟账户标识,则认证服务器要保存所生成的虚拟账户标识与业务系统的业务账户的对应关系(或者保存虚拟账户标识与设备标识的对应关系),以便在后续的身份认证流程中,能够将与注册流程中相同的虚拟账户标识分配给同一个业务系统的同一个用户账户。It should be noted that if the method of generating the virtual account identifier cannot ensure that the same virtual account identifier is generated for the same business account in the same business system, the authentication server must save the correspondence between the generated virtual account identifier and the business account of the business system (or save the correspondence between the virtual account identifier and the device identifier) so that in the subsequent identity authentication process, the same virtual account identifier as in the registration process can be assigned to the same user account in the same business system.
认证服务器上预先保存有相对应的服务器私钥和服务器公钥,在生成虚拟账户标识后,认证服务器将虚拟账户标识和服务器公钥封装在注册信息响应报文中,采用与服务器私钥对注册信息响应报文签名后,发送给业务服务器。业务服务器将注册信息响应报文转发给用户设备的业务客户端。The authentication server pre-stores the corresponding server private key and server public key. After generating a virtual account identifier, the authentication server encapsulates the virtual account identifier and server public key in a registration information response message, signs the registration information response message with the server private key, and sends it to the service server. The service server forwards the registration information response message to the service client of the user device.
在用户设备上,步骤230,业务客户端确定用户的生物认证类型,获取该生物认证类型的用户的生物数据,将生物数据携带在本地生物认证请求中发送给生物认证中间件,生物认证中间件将本地生物认证请求转发给生物认证客户端,生物认证客户端利用其中的生物数据对用户身份进行生物特征校验并将校验结果在本地生物认证响应中返回给生物认证中间件,生物认证中间件将本地生物认证响应返回给业务客户端。On the user device, in step 230, the business client determines the user's biometric authentication type, obtains the biometric data of the user of the biometric authentication type, carries the biometric data in a local biometric authentication request and sends it to the biometric authentication middleware. The biometric authentication middleware forwards the local biometric authentication request to the biometric authentication client. The biometric authentication client uses the biometric data therein to perform biometric feature verification on the user's identity and returns the verification result to the biometric authentication middleware in a local biometric authentication response. The biometric authentication middleware returns the local biometric authentication response to the business client.
业务客户端确定用户在本业务系统中进行身份认证时所采用的生物认证类型,并请求用户提供该类型的生物数据。业务客户端可以在用户设备支持的生物认证类型(即用户设备具有的生物特征识别功能)中按照预置的优先级选择其中的一种,也可以将本业务系统接受并且该用户设备支持的几种生物认证类型显示给用户供其选择,本申请的实施例不做限定。生物认证类型可以是指纹、声音、虹膜、人脸等。The service client determines the type of biometric authentication used by the user for identity authentication in this service system and requests the user to provide biometric data of that type. The service client can select one of the biometric authentication types supported by the user device (i.e., the biometric feature recognition function of the user device) according to a preset priority, or it can display several biometric authentication types accepted by this service system and supported by the user device for the user to choose from, which is not limited in the embodiments of this application. The biometric authentication type can be fingerprint, voice, iris, face, etc.
用户的生物数据可以是业务客户端确定的生物认证类型中该用户设备能够识别的任何一个特定对象,例如对指纹而言,可以是任何一个手指的指纹;对虹膜而言,可以是任意一只眼睛的虹膜。The user's biometric data may be any specific object that can be identified by the user device in the biometric authentication type determined by the service client. For example, for fingerprints, it may be the fingerprint of any finger; for irises, it may be the iris of any eye.
在业务客户端获取到所确定生物认证类型的生物数据后,将生物数据封装在本地生物认证请求中发送给生物认证中间件,生物认证中间件将本地生物认证请求转发给生物认证客户端。After the service client obtains the biometric data of the determined biometric authentication type, it encapsulates the biometric data in a local biometric authentication request and sends it to the biometric authentication middleware. The biometric authentication middleware forwards the local biometric authentication request to the biometric authentication client.
生物认证客户端利用其中的生物数据对用户身份进行生物特征校验。生物特征校验的具体方式可以参照现有技术中用户设备的生物特征识别方式来实现,例如可以是与用户设备上本地预先保存的样本数据进行比对,如果匹配程度满足某些预定条件,则生物特征校验成功。在校验完成后,生物认证客户端将是否通过的校验结果封装在本地生物认证响应中返回给生物认证中间件,生物认证中间件将本地生物认证响应返回给业务客户端。The biometric authentication client uses the biometric data to perform biometric verification of the user's identity. This verification can be implemented using methods similar to existing biometric identification methods for user devices. For example, it can be compared with sample data stored locally on the user device. If the match meets certain predetermined conditions, the biometric verification is considered successful. After the verification is complete, the biometric authentication client encapsulates the verification result (pass or fail) in a local biometric authentication response and returns it to the biometric authentication middleware. The biometric authentication middleware then returns the local biometric authentication response to the service client.
在用户设备上,步骤240,在本地生物特征校验结果为通过时,业务客户端将注册信息响应报文发送给生物认证中间件,生物认证中间件将注册信息响应报文转发给生物认证客户端;生物认证客户端将注册信息响应报文转发给身份认证检验器,身份认证检验器采用服务器公钥对注册信息响应报文进行验签,在验签通过后从令牌及密钥管理器获取与用户最近一次通过本地生物校验时所采用生物数据对应的生物特征令牌,生成相对应的业务公钥和业务私钥,保存虚拟账户标识、生物认证类型、生物认证令牌和业务私钥的对应关系;身份认证检验器将设备标识、虚拟账户标识、生物认证类型、生物特征令牌和业务公钥封装在注册请求报文中,并交由令牌及密钥管理器采用用户设备的设备私钥对注册请求报文进行签名后,将注册请求报文返回给生物认证客户端,生物认证客户端将注册请求报文返回给生物认证中间件,生物认证中间件将注册请求报文返回给业务客户端。On the user device, in step 240, when the local biometric verification result is passed, the business client sends a registration information response message to the biometric authentication middleware, and the biometric authentication middleware forwards the registration information response message to the biometric authentication client; the biometric authentication client forwards the registration information response message to the identity authentication verifier, and the identity authentication verifier uses the server public key to verify the signature of the registration information response message. After the signature verification is passed, it obtains the biometric token corresponding to the biometric data used when the user passed the local biometric verification most recently from the token and key manager, generates the corresponding business public key and business private key, and saves the correspondence between the virtual account identifier, biometric authentication type, biometric authentication token and business private key; the identity authentication verifier encapsulates the device identifier, virtual account identifier, biometric authentication type, biometric token and business public key in a registration request message, and hands it over to the token and key manager to sign the registration request message with the device private key of the user device, and then returns the registration request message to the biometric authentication client, the biometric authentication client returns the registration request message to the biometric authentication middleware, and the biometric authentication middleware returns the registration request message to the business client.
业务客户端从生物认证中间件返回的本地生物认证响应中提取本地生物特征校验结果,如果结果为未通过,则身份注册流程以失败结束。当本地生物特征校验结果为通过时,业务客户端将注册信息响应报文发送给生物认证中间件,生物认证中间件将注册信息响应报文转发给生物认证客户端;生物认证客户端将注册信息响应报文转发给身份认证检验器。The business client extracts the local biometric verification result from the local biometric authentication response returned by the biometric authentication middleware. If the result is a failure, the identity registration process ends in failure. If the local biometric verification result is a success, the business client sends a registration information response message to the biometric authentication middleware, which forwards the registration information response message to the biometric authentication client. The biometric authentication client then forwards the registration information response message to the identity verification device.
身份认证检验器从注册信息响应报文中提取服务器公钥,采用该服务器公钥对注册信息响应报文进行验签,如果验签未通过,则说明注册信息响应报文很可能并非来自于可靠的认证服务器,注册流程以失败结束。在验签通过后,身份认证检验器向令牌及密钥管理器请求生物特征令牌。令牌及密钥管理器将与用户最近一次通过本地生物校验时所采用生物数据(即业务客户端在步骤230中用来进行本地生物特征校验时所获取的生物数据)对应的生物特征令牌返回给身份认证检验器。The identity verification device extracts the server public key from the registration information response message and uses it to verify the registration information response message. If the verification fails, it indicates that the registration information response message is likely not from a reliable authentication server, and the registration process ends in failure. After the verification succeeds, the identity verification device requests a biometric token from the token and key manager. The token and key manager returns the biometric token corresponding to the user's most recent biometric data used in the local biometric verification (i.e., the biometric data obtained by the service client during the local biometric verification in step 230) to the identity verification device.
生物特征令牌是该用户设备上唯一对应于用于校验该生物数据的样本数据的特征量或索引值。也就是说,用户的每个手指的指纹分别对应于一个不同的生物特征令牌,人脸的对应于另外一个不同的生物特征令牌;每次用户采用拇指进行生物特征校验时,用户设备采集的拇指指纹数据都是用拇指指纹的样本数据进行校验,因而这些拇指指纹数据都对应于同一个生物特征令牌。本申请对生物特征令牌的形式和生成生物特征令牌的具体方式不做限定,例如可以是对该样本数据或该样本数据的一部分应用摘要算法后得到的信息摘要,也可以是一个对应于该样本数据的随机数。A biometric token is a unique characteristic quantity or index value on the user's device that corresponds to the sample data used to verify the biometric data. In other words, the fingerprint of each finger of the user corresponds to a different biometric token, and the fingerprint of the face corresponds to another different biometric token; each time the user uses the thumb for biometric verification, the thumb fingerprint data collected by the user device is verified with the sample data of the thumb fingerprint, so these thumb fingerprint data all correspond to the same biometric token. This application does not limit the form of the biometric token and the specific method of generating the biometric token. For example, it can be an information summary obtained by applying a summary algorithm to the sample data or a part of the sample data, or it can be a random number corresponding to the sample data.
身份认证检验器生成相对应的业务公钥和业务私钥,保存注册信息响应报文中的虚拟账户标识、用户最近一次通过本地生物校验时所采用的生物认证类型、令牌及密钥管理器返回的生物特征令牌、与生成的业务私钥的对应关系。身份认证检验器将设备标识、虚拟账户标识、生物认证类型、生物特征令牌和业务公钥封装在注册请求报文中,将注册请求报文发送给令牌及密钥管理器。令牌及密钥管理器读取保存的用户设备的设备私钥,用设备私钥对注册请求报文进行签名后,将注册请求报文返回给生物认证客户端。The identity verification device generates the corresponding business public key and business private key, and saves the virtual account identifier in the registration information response message, the biometric authentication type used by the user during the most recent local biometric verification, the biometric token returned by the token and key manager, and the corresponding relationship with the generated business private key. The identity verification device encapsulates the device identifier, virtual account identifier, biometric authentication type, biometric token, and business public key in a registration request message and sends the registration request message to the token and key manager. The token and key manager reads the stored device private key of the user device, signs the registration request message with the device private key, and returns the registration request message to the biometric authentication client.
生物认证客户端将注册请求报文返回给生物认证中间件,生物认证中间件将注册请求报文返回给业务客户端。The biometric authentication client returns the registration request message to the biometric authentication middleware, and the biometric authentication middleware returns the registration request message to the business client.
在用户设备上,步骤250,业务客户端将注册请求报文发送业务服务器,注册请求报文由业务服务器转发给认证服务器,供认证服务器在交由生物认证中心服务器采用用户设备的设备公钥进行验签后,保存设备标识、虚拟账户标识、生物认证类型、生物特征令牌和业务公钥的对应关系,以用来对用户账户进行身份认证。On the user device, in step 250, the business client sends a registration request message to the business server, which forwards the registration request message to the authentication server. After the authentication server verifies the signature using the device public key of the user device via the biometric authentication center server, it saves the correspondence between the device identifier, virtual account identifier, biometric authentication type, biometric token and business public key for use in authenticating the user account.
在认证服务器上,步骤320,从业务服务器接收来自用户设备的注册请求报文,注册请求报文中包括用户设备的设备标识、虚拟账户标识、生物认证类型、生物特征令牌和业务公钥,并采用用户设备的设备密钥进行签名;将注册请求报文发送给生物认证中心服务器,接收生物认证中心服务器采用其中设备标识对应的设备公钥对注册请求报文进行验签后返回的验签结果。On the authentication server, in step 320, a registration request message is received from the business server from the user device, where the registration request message includes the device identifier, virtual account identifier, biometric authentication type, biometric token and business public key of the user device, and is signed using the device key of the user device; the registration request message is sent to the biometric authentication center server, and the biometric authentication center server receives the verification result returned after verifying the registration request message using the device public key corresponding to the device identifier.
在认证服务器上,步骤330,在注册请求报文通过验签后,保存设备标识、虚拟账户标识、生物认证类型、生物特征令牌和业务公钥的对应关系,以用来对用户账户进行身份认证。On the authentication server, in step 330, after the registration request message passes the signature verification, the corresponding relationship between the device identifier, virtual account identifier, biometric authentication type, biometric token and business public key is saved to authenticate the user account.
业务客户端将生物认证中间件返回的注册请求报文发送给业务服务器。业务服务器将注册请求报文转发给认证服务器。The business client sends the registration request message returned by the biometric authentication middleware to the business server. The business server forwards the registration request message to the authentication server.
认证服务器将注册请求报文发送给生物认证中心服务器。生物认证中心服务器从接收的注册请求报文中提取设备标识,从可访问的网络存储位置查找与该设备标识对应的设备公钥,利用设备公钥对注册请求报文进行验签,并将验签结果返回给认证服务器。The authentication server sends the registration request message to the biometric authentication center server. The biometric authentication center server extracts the device ID from the received registration request message, searches for the device public key corresponding to the device ID from an accessible network storage location, verifies the signature of the registration request message using the device public key, and returns the verification result to the authentication server.
如果验签未通过,认证拒绝注册请求并通知业务服务器,由业务服务器将注册失败的结果通知业务客户端。如果验签结果为通过,认证服务器保存注册请求报文中设备标识、虚拟账户标识、生物认证类型、生物特征令牌和业务公钥的对应关系。If the signature verification fails, the authentication server rejects the registration request and notifies the service server, which then notifies the service client of the registration failure. If the signature verification succeeds, the authentication server saves the corresponding relationship between the device ID, virtual account ID, biometric authentication type, biometric token, and service public key in the registration request message.
认证服务器可以向业务服务器返回注册成功的注册响应报文,由业务服务器将注册成功的消息通知用户设备的业务客户端。认证服务器可以在注册响应报文中携带上述对应关系中的虚拟账户标识和生物认证类型,以及与该虚拟账户标识对应的业务账户标识,由业务服务器保存注册成功的注册响应报文中业务账户标识、虚拟账户标识和生物认证类型的对应关系。The authentication server may return a registration response message indicating successful registration to the service server, which will then notify the service client of the user device of the successful registration. The authentication server may include the virtual account identifier and biometric authentication type in the aforementioned correspondence, as well as the service account identifier corresponding to the virtual account identifier, in the registration response message. The service server will store the correspondence between the service account identifier, virtual account identifier, and biometric authentication type in the registration response message indicating successful registration.
在一种实现方式中,认证服务器可以在收到注册信息请求报文后,生成虚拟账户标识和该虚拟账户的注册挑战码,注册挑战码的生成方式可以采用各种一次性口令的生成算法,本例中不做限定。认证服务器将虚拟账户标识、服务器公钥和所生成的注册挑战码封装在注册信息响应报文中发送给业务服务器,并启动计时。在生成注册请求报文时,用户设备上的身份认证检验器将注册信息响应报文中的注册挑战码也封装在注册请求报文中。认证服务器收到业务服务器转发的注册请求报文,比对注册请求报文中的注册挑战码和为注册请求报文中虚拟账户生成的注册挑战码,并且并获取发送注册信息响应报文和收到注册请求报文的时间差。如果两个注册验证码不同或者该时间差超过第一预定时长,认证服务器拒绝注册请求并通知业务服务器,由业务服务器将注册失败的结果通知业务客户端;如果两个注册验证码相同并且该时间差不超过第一预定时长,保存注册请求报文中设备标识、虚拟账户标识、生物认证类型、生物特征令牌和业务公钥的对应关系。In one implementation, the authentication server may generate a virtual account identifier and a registration challenge code for the virtual account after receiving the registration information request message. The registration challenge code may be generated using various one-time password generation algorithms, which are not limited in this example. The authentication server encapsulates the virtual account identifier, the server public key, and the generated registration challenge code in a registration information response message and sends it to the business server, and starts the timer. When generating the registration request message, the identity authentication verifier on the user device also encapsulates the registration challenge code in the registration information response message in the registration request message. The authentication server receives the registration request message forwarded by the business server, compares the registration challenge code in the registration request message with the registration challenge code generated for the virtual account in the registration request message, and obtains the time difference between sending the registration information response message and receiving the registration request message. If the two registration verification codes are different or the time difference exceeds the first predetermined time period, the authentication server rejects the registration request and notifies the business server, which then notifies the business client of the registration failure result; if the two registration verification codes are the same and the time difference does not exceed the first predetermined time period, the correspondence between the device identifier, virtual account identifier, biometric authentication type, biometric token, and business public key in the registration request message is saved.
本实施例的一种包括注册挑战码的实现方式中,用户设备的各个功能模块、业务服务器、认证服务器与生物认证中心服务器之间的交互流程如图4所示。In an implementation method of this embodiment including a registration challenge code, the interaction process between the functional modules of the user equipment, the service server, the authentication server and the biometric authentication center server is shown in FIG4 .
在本申请的实施例一中,通过预存在用户设备上的设备私钥和设备公钥来确保用户设备为可信设备,通过服务器公钥和服务器私钥来验证业务服务器的可靠性,从而能够安全的将用户设备的设备标识、虚拟账户标识、生物认证类型、生物特征令牌和业务公钥的对应关系注册到认证服务器上用于后续的身份认证,提高了身份注册过程的安全性。In embodiment 1 of the present application, the device private key and device public key pre-stored on the user device are used to ensure that the user device is a trusted device, and the reliability of the business server is verified by the server public key and server private key, so that the correspondence between the user device's device identification, virtual account identification, biometric authentication type, biometric token and business public key can be securely registered on the authentication server for subsequent identity authentication, thereby improving the security of the identity registration process.
本申请的实施例二描述一种基于生物特征的身份认证方法,该方法应用在用户设备上的流程如图5所示,应用在认证服务器上的流程如图6所示。实施例二中的身份认证流程中采用了与实施例一的身份注册流程中相同的一些技术手段,以下只对实施例二中与实施例一中不同的部分进行说明,相同部分请参见实施例一中的内容,不再重复。Example 2 of this application describes a biometric-based identity authentication method. The process for applying this method on a user device is shown in Figure 5 , and the process for applying this method on an authentication server is shown in Figure 6 . The identity authentication process in Example 2 employs some of the same technical means as the identity registration process in Example 1. The following only describes the differences between Example 2 and Example 1. For the same parts, please refer to the content of Example 1 and will not be repeated.
在用户设备上,步骤510,业务客户端向生物认证中间件发起设备信息请求,生物认证中间件将设备信息请求转发给生物认证客户端,生物认证客户端将设备信息请求转发给身份认证检验器,身份认证检验器获取用户设备包括设备标识的设备信息并将设备信息携带在设备信息响应中返回给生物认证客户端,生物认证客户端将设备信息响应返回给生物认证中间件,生物认证中间件将设备信息响应返回给业务客户端。On the user device, in step 510, the business client initiates a device information request to the biometric authentication middleware, the biometric authentication middleware forwards the device information request to the biometric authentication client, the biometric authentication client forwards the device information request to the identity authentication verifier, the identity authentication verifier obtains the device information of the user device including the device identifier and carries the device information in the device information response and returns it to the biometric authentication client, the biometric authentication client returns the device information response to the biometric authentication middleware, and the biometric authentication middleware returns the device information response to the business client.
当用户在用户设备上的业务客户端启动利用生物特征进行身份验证的认证流程时,业务客户端向生物认证中间件发起设备信息请求,生物认证中间件将设备信息请求转发给生物认证客户端,生物认证客户端将设备信息请求转发给身份认证检验器。When a user starts an authentication process using biometric features on a business client on a user device, the business client initiates a device information request to the biometric authentication middleware. The biometric authentication middleware forwards the device information request to the biometric authentication client, and the biometric authentication client forwards the device information request to the identity verification device.
身份认证检验器获取用户设备的设备信息,其中包括设备标识,还可以包括设备型号、生产厂商等。身份认证检验器将所获取的设备信息携带在设备信息响应中返回给生物认证客户端,生物认证客户端将设备信息响应返回给生物认证中间件,生物认证中间件将设备信息响应返回给业务客户端。The identity verification device obtains device information from the user's device, including the device ID and, optionally, the device model and manufacturer. The identity verification device returns this information in a device information response to the biometric authentication client. The biometric authentication client returns the device information response to the biometric authentication middleware, which then returns the device information response to the service client.
在用户设备上,步骤520,业务客户端向业务服务器发送包括设备标识的认证信息请求报文,接收业务服务器返回的认证信息响应报文;认证信息响应报文由认证服务器采用服务器私钥签名后发送给业务服务器,其中包括认证服务器在收到业务服务器转发的认证信息请求报文后获取的与设备标识对应的虚拟账户标识、和与服务器私钥相对应的服务器公钥。On the user device, in step 520, the business client sends an authentication information request message including the device identifier to the business server, and receives an authentication information response message returned by the business server; the authentication information response message is signed by the authentication server using the server private key and sent to the business server, and includes the virtual account identifier corresponding to the device identifier and the server public key corresponding to the server private key obtained by the authentication server after receiving the authentication information request message forwarded by the business server.
在认证服务器上,步骤610,从业务服务器接收来自用户设备的认证信息请求报文,认证信息请求报文中包括用户设备的设备标识;获取对应于设备标识的虚拟账户标识,将虚拟账户标识和服务器公钥封装在认证信息响应报文中,采用与服务器公钥相对应的服务器私钥对认证信息响应报文签名后,发送给业务服务器,供业务服务器将认证信息响应报文转发给用户设备。On the authentication server, in step 610, an authentication information request message from a user device is received from the business server, where the authentication information request message includes the device identifier of the user device; a virtual account identifier corresponding to the device identifier is obtained, the virtual account identifier and the server public key are encapsulated in an authentication information response message, the authentication information response message is signed with the server private key corresponding to the server public key, and then sent to the business server for the business server to forward the authentication information response message to the user device.
用户设备的业务客户端向业务服务器发送认证信息请求报文,认证信息请求报文中包括用户设备的设备标识。认证信息请求报文中还可以包括用户的业务账户标识。业务服务器将认证信息请求报文转发给认证服务器。The service client of the user device sends an authentication information request message to the service server. The authentication information request message includes the device identifier of the user device. The authentication information request message may also include the user's service account identifier. The service server forwards the authentication information request message to the authentication server.
在实施例一的身份注册流程中,认证服务器将设备标识、虚拟账户标识、生物认证类型、生物特征令牌和业务公钥的对应关系保存在本地或其他可访问的网络存储位置,保存后的设备标识、虚拟账户标识、生物认证类型、生物特征令牌和业务公钥即为实施例二中已注册的设备标识、已注册的虚拟账户标识、已注册的生物认证类型、已注册的生物特征令牌和已注册的业务公钥。In the identity registration process of Example 1, the authentication server saves the correspondence between the device identification, virtual account identification, biometric authentication type, biometric token and business public key locally or in another accessible network storage location. The saved device identification, virtual account identification, biometric authentication type, biometric token and business public key are the registered device identification, registered virtual account identification, registered biometric authentication type, registered biometric token and registered business public key in Example 2.
在收到业务服务器转发的认证请求报文后,认证服务器从中提取用户设备的设备标识,查找与该设备标识对应的已注册的虚拟账户标识,将找到的虚拟账户标识和服务器公钥封装在认证信息响应报文中,并且采用与服务器公钥相对应的服务器私钥对认证信息响应报文签名后,发送给业务服务器。业务服务器将认证信息响应报文转发给用户设备。After receiving the authentication request message forwarded by the service server, the authentication server extracts the user device's device ID from it, searches for the registered virtual account ID corresponding to the device ID, encapsulates the found virtual account ID and the server's public key in an authentication information response message, and signs the authentication information response message with the server's private key corresponding to the server's public key before sending it to the service server. The service server then forwards the authentication information response message to the user device.
在用户设备上,步骤530,业务客户端获取注册时所采用生物认证类型的用户的生物数据,将生物数据携带在本地生物认证请求中发送给生物认证中间件,生物认证中间件将本地生物认证请求转发给生物认证客户端,生物认证客户端利用其中的生物数据对用户身份进行生物特征校验并将校验结果在本地生物认证响应中返回给生物认证中间件,生物认证中间件将本地生物认证响应返回给业务客户端。On the user device, in step 530, the business client obtains the biometric data of the user of the biometric authentication type adopted during registration, carries the biometric data in a local biometric authentication request and sends it to the biometric authentication middleware. The biometric authentication middleware forwards the local biometric authentication request to the biometric authentication client. The biometric authentication client uses the biometric data therein to perform biometric feature verification on the user identity and returns the verification result to the biometric authentication middleware in a local biometric authentication response. The biometric authentication middleware returns the local biometric authentication response to the business client.
业务客户端按照在身份注册流程中已确定的生物认证类型向用户请求、并获取用户提供的该生物认证类型的生物数据。业务客户端将用户的生物数据封装在本地生物认证请求中发送给生物认证中间件,生物认证中间件将本地生物认证请求转发给生物认证客户端。The service client requests and obtains the user's biometric data for the biometric authentication type determined during the identity registration process. The service client encapsulates the user's biometric data in a local biometric authentication request and sends it to the biometric authentication middleware. The biometric authentication middleware then forwards the local biometric authentication request to the biometric authentication client.
生物认证客户端利用生物认证请求中的生物数据对用户身份进行生物特征校验。在校验完成后,生物认证客户端将是否通过的校验结果封装在本地生物认证响应中返回给生物认证中间件,生物认证中间件将本地生物认证响应返回给业务客户端。The biometric authentication client uses the biometric data in the biometric authentication request to perform biometric verification of the user's identity. After the verification is complete, the biometric authentication client encapsulates the verification result (pass or fail) in a local biometric authentication response and returns it to the biometric authentication middleware. The biometric authentication middleware then returns the local biometric authentication response to the service client.
在用户设备上,步骤540,在本地生物特征校验结果为通过时,业务客户端将认证信息响应报文发送给生物认证中间件,生物认证中间件将认证信息响应报文转发给生物认证客户端;生物认证客户端将认证信息响应报文转发给身份认证检验器,身份认证检验器采用服务器公钥对认证信息响应报文进行验签,在验签通过后从令牌及密钥管理器获取与用户最近一次通过本地生物校验时所采用生物数据对应的生物特征令牌,在保存的虚拟账户标识、生物认证类型、生物特征令牌、和业务私钥的对应关系中获取与该生物认证类型、认证信息响应报文中的虚拟账户标识和生物特征令牌对应的业务私钥,将设备标识、虚拟账户标识、生物认证类型和生物特征令牌封装在认证请求报文中,并采用业务私钥对认证请求报文签名后,返回给生物认证客户端;生物认证客户端将认证请求报文返回给生物认证中间件,生物认证中间件将认证请求报文返回给业务客户端。On the user device, in step 540, when the local biometric verification result is passed, the business client sends the authentication information response message to the biometric authentication middleware, and the biometric authentication middleware forwards the authentication information response message to the biometric authentication client; the biometric authentication client forwards the authentication information response message to the identity authentication verifier, and the identity authentication verifier uses the server public key to verify the signature of the authentication information response message. After the signature verification is passed, the identity authentication verifier obtains the biometric token corresponding to the biometric data used when the user passed the local biometric verification for the last time from the token and key manager, obtains the business private key corresponding to the biometric authentication type, the virtual account identifier and the biometric token in the authentication information response message from the saved correspondence between the virtual account identifier, the biometric authentication type, the biometric token, and the business private key, encapsulates the device identifier, the virtual account identifier, the biometric authentication type and the biometric token in the authentication request message, and signs the authentication request message with the business private key, and returns it to the biometric authentication client; the biometric authentication client returns the authentication request message to the biometric authentication middleware, and the biometric authentication middleware returns the authentication request message to the business client.
业务客户端从生物认证中间件返回的本地生物认证响应中提取本地生物特征校验结果,如果结果为未通过,则身份认证流程以失败结束。当本地生物特征校验结果为通过时,业务客户端将认证信息响应报文发送给生物认证中间件,生物认证中间件将认证信息响应报文转发给生物认证客户端;生物认证客户端将认证信息响应报文转发给身份认证检验器。The business client extracts the local biometric verification result from the local biometric authentication response returned by the biometric authentication middleware. If the result is a failure, the identity authentication process ends in failure. If the local biometric verification result is a success, the business client sends an authentication information response message to the biometric authentication middleware, which forwards the authentication information response message to the biometric authentication client. The biometric authentication client then forwards the authentication information response message to the identity authentication verifier.
身份认证检验器从认证信息响应报文中提取服务器公钥,采用该服务器公钥对认证信息响应报文进行验签,如果验签未通过,则说明认证信息响应报文很可能并非来自于可靠的认证服务器,认证流程以失败结束。在验签通过后,身份认证检验器向令牌及密钥管理器请求生物特征令牌。令牌及密钥管理器将与用户最近一次通过本地生物校验时所采用生物数据(即业务客户端在步骤530中用来进行本地生物特征校验时所获取的生物数据)对应的生物特征令牌返回给身份认证检验器。The identity verification device extracts the server public key from the authentication information response message and uses it to verify the signature of the authentication information response message. If the signature verification fails, it indicates that the authentication information response message is likely not from a reliable authentication server, and the authentication process ends in failure. After the signature verification succeeds, the identity verification device requests a biometric token from the token and key manager. The token and key manager returns the biometric token corresponding to the user's most recent biometric data used in the local biometric verification (i.e., the biometric data obtained by the service client during the local biometric verification in step 530) to the identity verification device.
身份认证检验器将用户设备的设备标识、从认证信息响应报文中提取的虚拟账户标识、最近一次本地生物特征校验成功时采用的生物认证类型和令牌及密钥管理器返回的生物特征令牌封装在认证请求报文中。身份认证检验器在保存的虚拟账户标识、生物认证类型、生物特征令牌、和业务私钥的对应关系中,查找到与最近一次本地生物特征校验成功时所采用的生物认证类型、认证信息响应报文中的虚拟账户标识和令牌及密钥管理器返回的生物特征令牌对应的业务私钥,采用该业务私钥对认证请求报文签名后,返回给生物认证。The identity authentication verifier encapsulates the user device's device identifier, the virtual account identifier extracted from the authentication information response message, the biometric authentication type used when the most recent local biometric verification was successful, and the biometric token returned by the token and key manager in the authentication request message. The identity authentication verifier searches the stored correspondence between virtual account identifiers, biometric authentication types, biometric tokens, and business private keys to find the business private key corresponding to the biometric authentication type used when the most recent local biometric verification was successful, the virtual account identifier in the authentication information response message, and the biometric token returned by the token and key manager. The identity authentication verifier then signs the authentication request message with this business private key and returns it to the biometric authentication verifier.
生物认证客户端将认证请求报文返回给生物认证中间件,生物认证中间件将认证请求报文返回给业务客户端。The biometric authentication client returns the authentication request message to the biometric authentication middleware, and the biometric authentication middleware returns the authentication request message to the business client.
在用户设备上,步骤550,业务客户端将认证请求报文发送业务服务器,认证请求报文由业务服务器转发给认证服务器,供认证服务器根据与虚拟账户标识、设备标识和生物认证类型对应的已注册生物特征令牌和已注册业务公钥对用户进行身份认证。On the user device, in step 550, the business client sends an authentication request message to the business server, which forwards the authentication request message to the authentication server for the authentication server to authenticate the user based on the registered biometric token and registered business public key corresponding to the virtual account identifier, device identifier and biometric authentication type.
在认证服务器上,步骤620,从业务服务器接收来自用户设备的认证请求报文,认证请求报文中包括用户设备的设备标识、虚拟账户标识、生物认证类型和生物特征令牌,并采用业务公钥进行签名;获取与认证请求报文中的设备标识、虚拟账户标识和生物认证类型对应的已注册生物特征令牌和已注册业务公钥。On the authentication server, step 620, an authentication request message is received from the business server from the user device, where the authentication request message includes the device identifier, virtual account identifier, biometric authentication type, and biometric token of the user device, and is signed with the business public key; and a registered biometric token and a registered business public key corresponding to the device identifier, virtual account identifier, and biometric authentication type in the authentication request message are obtained.
在认证服务器上,步骤630,采用已注册业务公钥对认证请求报文进行验签,并根据认证请求报文中的生物特征令牌和已注册生物特征令牌对用户进行身份认证。On the authentication server, in step 630, the authentication request message is signed using the registered service public key, and the user's identity is authenticated based on the biometric token in the authentication request message and the registered biometric token.
业务客户端将生物认证中间件返回的认证请求报文发送给业务服务器。业务服务器将认证请求报文转发给认证服务器。认证服务器在保存的已注册的设备标识、已注册的虚拟账户标识、已注册的生物认证类型、已注册的生物特征令牌和已注册的业务公钥的对应关系中,查找与认证请求报文中虚拟账户标识、设备标识和生物认证类型对应的已注册生物特征令牌和已注册业务公钥。The service client sends the authentication request message returned by the biometric authentication middleware to the service server. The service server forwards the authentication request message to the authentication server. The authentication server searches its stored database for the corresponding relationships between registered device identifiers, registered virtual account identifiers, registered biometric authentication types, registered biometric tokens, and registered service public keys. It then searches for the registered biometric token and registered service public key that correspond to the virtual account identifier, device identifier, and biometric authentication type in the authentication request message.
认证服务器比对认证请求报文中的生物特征令牌与已注册生物特征令牌,并采用已注册业务公钥对认证请求报文进行验签。如果两个生物特征令牌不同、或者验签未通过,认证服务器拒绝认证请求并通知业务服务器,由业务服务器将认证失败的结果通知业务客户端。如果两个生物特征令牌相同并且验签通过,用户通过身份认证,认证服务器将身份认证通过的结果在认证响应报文中回复给业务服务器。业务服务器可以基于身份认证通过的结果进行相应的业务处理,并将身份认证通过的结果和/或业务处理的结果通知业务客户端。The authentication server compares the biometric token in the authentication request message with the registered biometric token and verifies the signature of the authentication request message using the registered business public key. If the two biometric tokens are different or the signature verification fails, the authentication server rejects the authentication request and notifies the business server, which then notifies the business client of the authentication failure. If the two biometric tokens are identical and the signature verification passes, the user is authenticated. The authentication server sends the authentication result to the business server in an authentication response message. The business server can perform appropriate business processing based on the authentication result and notify the business client of the authentication result and/or business processing result.
在一种实现方式中,认证服务器可以在收到认证信息请求报文后,生成对应于认证信息请求报文中设备标识的虚拟账户的认证挑战码。认证服务器将虚拟账户标识、服务器公钥和所生成的认证挑战码封装在认证信息响应报文中发送给业务服务器,并启动计时。在生成认证请求报文时,用户设备上的身份认证检验器将认证信息响应报文中的认证挑战码也封装在认证请求报文中。认证服务器收到业务服务器转发的认证请求报文,比对认证请求报文中的认证挑战码和为认证请求报文中虚拟账户生成的认证挑战码,并且并获取发送认证信息响应报文和收到认证请求报文的时间差。如果两个认证验证码不同或者该时间差超过第二预定时长,认证服务器拒绝认证请求并通知业务服务器,由业务服务器将认证失败的结果通知业务客户端;如果两个认证验证码相同并且该时间差不超过第二预定时长,采用已注册业务公钥对认证请求报文进行验签,并根据认证请求报文中的生物特征令牌和已注册生物特征令牌对用户进行身份认证。In one implementation, the authentication server may generate an authentication challenge code corresponding to the virtual account of the device identifier in the authentication information request message after receiving the authentication information request message. The authentication server encapsulates the virtual account identifier, the server public key and the generated authentication challenge code in an authentication information response message and sends it to the business server, and starts the timer. When generating the authentication request message, the identity authentication verifier on the user device also encapsulates the authentication challenge code in the authentication information response message in the authentication request message. The authentication server receives the authentication request message forwarded by the business server, compares the authentication challenge code in the authentication request message with the authentication challenge code generated for the virtual account in the authentication request message, and obtains the time difference between sending the authentication information response message and receiving the authentication request message. If the two authentication verification codes are different or the time difference exceeds the second predetermined time period, the authentication server rejects the authentication request and notifies the business server, which then notifies the business client of the authentication failure result; if the two authentication verification codes are the same and the time difference does not exceed the second predetermined time period, the registered business public key is used to verify the signature of the authentication request message, and the user is authenticated based on the biometric token in the authentication request message and the registered biometric token.
本实施例的一种包括认证挑战码的实现方式中,用户设备的各个功能模块、业务服务器、认证服务器与生物认证中心服务器之间的交互流程如图7所示。In an implementation method of this embodiment including an authentication challenge code, the interaction process between the functional modules of the user equipment, the service server, the authentication server and the biometric authentication center server is shown in FIG7 .
在本申请的实施例二中,通过预存在用户设备上的设备私钥和设备公钥来确保用户设备为可信设备,通过服务器公钥和服务器私钥来验证业务服务器的可靠性,从而能够安全的将用户设备的设备标识、虚拟账户标识、生物认证类型、生物特征令牌和业务公钥的对应关系注册到认证服务器上用于后续的身份认证,提高了身份注册过程的安全性。In the second embodiment of the present application, the user device is ensured to be a trusted device by pre-existing a device private key and a device public key on the user device, and the reliability of the business server is verified by the server public key and the server private key, so that the correspondence between the device identification, virtual account identification, biometric authentication type, biometric token and business public key of the user device can be securely registered on the authentication server for subsequent identity authentication, thereby improving the security of the identity registration process.
本申请的实施例二中,采用服务器公钥和服务器私钥来对业务服务器进行验证,采用业务私钥和已注册的业务公钥来对用户设备进行验证,并且用户设备需要提供与已注册信息匹配的设备标识、虚拟账户标识、生物认证类型和生物特征令牌才能通过认证,使得身份认证过程具有极高的安全性。In Example 2 of the present application, the server public key and server private key are used to verify the business server, and the business private key and registered business public key are used to verify the user device. The user device needs to provide a device identifier, virtual account identifier, biometric authentication type and biometric token that match the registered information to pass the authentication, making the identity authentication process extremely secure.
在上述两个实施例中,可以将身份认证检验器和令牌及密钥管理器运行在用户设备上的安全环境中,以增加注册和认证过程的安全程度。例如,可以将身份认证检验器、令牌及密钥管理器与其他软件模块(如进程或线程)隔离运行并且不允许其他软件模块访问其缓存空间(这两个模块也相互隔离运行并且禁止相互访问缓存空间);再如,可以将身份认证检验器、令牌及密钥管理器的代码和存储的文件保存在用户设备上安全程度最高、访问控制最为严格的存储区域。In the above two embodiments, the identity verification device and the token and key manager can be run in a secure environment on the user device to increase the security of the registration and authentication process. For example, the identity verification device, token and key manager can be isolated from other software modules (such as processes or threads) and other software modules cannot access their cache space (the two modules are also isolated from each other and cannot access each other's cache space). For another example, the code and stored files of the identity verification device, token and key manager can be stored in the most secure and access-controlled storage area on the user device.
与上述流程实现对应,本申请的实施例还提供了一种应用在用户设备上的基于生物特征的身份注册装置、一种应用在认证服务器上的基于生物特征的身份注册装置、一种应用在用户设备上的基于生物特征的身份认证装置、和一种应用在认证服务器上的基于生物特征的身份认证装置。上述装置均可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。以软件实现为例,作为逻辑意义上的装置,是通过用户设备或认证服务器的CPU(Central Process Unit,中央处理器)将对应的计算机程序指令读取到内存中运行形成的。从硬件层面而言,除了图8所示的CPU、内存以及非易失性存储器之外,用户设备通常还包括用于进行无线信号收发的芯片等其他硬件,认证服务器通常还包括用于实现网络通信功能的板卡等其他硬件。Corresponding to the above-mentioned process implementation, the embodiments of the present application also provide a biometric-based identity registration device applied on a user device, a biometric-based identity registration device applied on an authentication server, a biometric-based identity authentication device applied on a user device, and a biometric-based identity authentication device applied on an authentication server. The above-mentioned devices can all be implemented by software, or by hardware or a combination of software and hardware. Taking software implementation as an example, as a device in the logical sense, it is formed by the CPU (Central Process Unit) of the user device or authentication server reading the corresponding computer program instructions into the memory and running them. From the hardware level, in addition to the CPU, memory and non-volatile memory shown in Figure 8, the user device usually also includes other hardware such as chips for wireless signal transmission and reception, and the authentication server usually also includes other hardware such as boards for implementing network communication functions.
图9所示为本申请实施例提供的一种基于生物特征的身份注册装置,应用在用户设备上,包括业务客户端、生物认证中间件、生物认证客户端、身份认证检验器和令牌及密钥管理器,其中:FIG9 shows a biometric identity registration device provided by an embodiment of the present application, which is applied to a user device and includes a service client, biometric authentication middleware, a biometric authentication client, an identity authentication verifier, and a token and key manager, wherein:
业务客户端用于向生物认证中间件发起设备信息请求,接收生物认证中间件返回的带有设备标识的设备信息响应;向业务服务器发送包括业务账户标识的注册信息请求报文,接收业务服务器返回的注册信息响应报文;所述注册信息响应报文由认证服务器采用服务器私钥签名后发送给业务服务器,其中包括认证服务器在收到业务服务器转发的注册信息请求报文后生成的对应于所述业务账户标识的虚拟账户标识、与所述服务器私钥相对应的服务器公钥;确定用户的生物认证类型,获取所述生物认证类型的用户的生物数据,将生物数据携带在本地生物认证请求中发送给生物认证中间件,接收生物认证中间件返回的带有本地生物校验结果的本地生物认证响应;在本地生物特征校验结果为通过时,将注册信息响应报文发送给生物认证中间件,接收生物认证中间件返回的注册请求报文,所述注册请求报文包括设备标识、虚拟账户标识、生物认证类型、生物特征令牌和业务公钥,并采用所述用户设备的设备私钥进行签名;将注册请求报文发送给业务服务器,所述注册请求报文由业务服务器转发给认证服务器,供认证服务器在交由生物认证中心服务器采用所述用户设备的设备公钥进行验签后,保存所述设备标识、虚拟账户标识、生物认证类型、生物特征令牌和业务公钥的对应关系,以用来对所述账户进行身份认证;The business client is used to initiate a device information request to the biometric authentication middleware and receive a device information response with a device identifier returned by the biometric authentication middleware; send a registration information request message including a business account identifier to the business server and receive a registration information response message returned by the business server; the registration information response message is signed by the authentication server using the server private key and sent to the business server, including a virtual account identifier corresponding to the business account identifier and a server public key corresponding to the server private key generated by the authentication server after receiving the registration information request message forwarded by the business server; determine the user's biometric authentication type, obtain the biometric data of the user of the biometric authentication type, carry the biometric data in the local biometric authentication request and send it to the biometric authentication middleware, and receive a response from the biometric authentication middleware The user device then sends a local biometric authentication response with a local biometric verification result; when the local biometric verification result is passed, the user device sends a registration information response message to the biometric authentication middleware, and receives a registration request message returned by the biometric authentication middleware, wherein the registration request message includes the device identifier, virtual account identifier, biometric authentication type, biometric token, and business public key, and is signed with the device private key of the user device; the user device sends the registration request message to the business server, which forwards the registration request message to the authentication server, for the authentication server to hand over the message to the biometric authentication center server for signature verification using the device public key of the user device, and then save the corresponding relationship between the device identifier, virtual account identifier, biometric authentication type, biometric token, and business public key for use in authenticating the account;
生物认证中间件用于从业务客户端接收并向生物认证客户端转发设备信息请求,从生物认证客户端接收并向业务客户端转发设备信息响应;从业务客户端接收并向生物认证客户端转发本地生物认证请求,从生物认证客户端接收并向业务客户端转发本地生物认证响应;从业务客户端接收并向生物认证客户端转发注册信息响应报文,从生物认证客户端接收并向业务客户端转发注册请求报文;The biometric authentication middleware is used to receive and forward device information requests from the business client and forward device information responses from the biometric authentication client to the business client; receive and forward local biometric authentication requests from the business client and forward local biometric authentication responses from the biometric authentication client to the business client; receive and forward registration information response messages from the business client and forward registration request messages from the biometric authentication client to the business client;
生物认证客户端用于从生物认证中间件接收并向身份认证检验器转发设备信息请求,从身份认证检验器接收并向生物认证中间件转发设备信息响应;从生物认证中间件接收本地生物认证请求,利用本地生物认证请求中的生物数据对用户身份进行生物特征校验并将校验结果在本地生物认证响应中返回给生物认证中间件;从生物认证中间件接收并向身份认证检验器转发注册信息响应报文,从身份认证检验器接收并向生物认证中间件转发注册请求报文;The biometric authentication client is used to receive and forward device information requests from the biometric authentication middleware and the identity authentication verifier, and receive and forward device information responses from the identity authentication verifier to the biometric authentication middleware; receive local biometric authentication requests from the biometric authentication middleware, perform biometric feature verification on the user's identity using the biometric data in the local biometric authentication request, and return the verification result to the biometric authentication middleware in the local biometric authentication response; receive and forward registration information response messages from the biometric authentication middleware and the identity authentication verifier, and receive and forward registration request messages from the identity authentication verifier to the biometric authentication middleware;
身份认证检验器用于在收到生物认证客户端转发的设备信息请求后,获取所述用户设备包括设备标识的设备信息并将所述设备信息携带在设备信息响应中返回给生物认证客户端;在收到生物认证客户端转发的注册信息响应报文后,采用注册信息响应报文中的服务器公钥对注册信息响应报文进行验签,在验签通过后从令牌及密钥管理器获取与用户最近一次通过本地生物校验时所采用生物数据对应的生物特征令牌,生成相对应的业务公钥和业务私钥,保存虚拟账户标识、生物认证类型、生物认证令牌和业务私钥的对应关系,将设备标识、虚拟账户标识、生物认证类型、生物特征令牌和业务公钥封装在注册请求报文中,并交由令牌及密钥管理器采用所述用户设备的设备私钥对注册请求报文进行签名后,将注册请求报文返回给生物认证客户端;The identity authentication verifier is used to, after receiving the device information request forwarded by the biometric authentication client, obtain the device information of the user device including the device identifier and return the device information to the biometric authentication client by carrying the device information in the device information response; after receiving the registration information response message forwarded by the biometric authentication client, use the server public key in the registration information response message to verify the signature of the registration information response message, and after the signature verification is passed, obtain the biometric token corresponding to the biometric data used by the user when passing the local biometric verification for the last time from the token and key manager, generate the corresponding business public key and business private key, save the correspondence between the virtual account identifier, biometric authentication type, biometric authentication token and business private key, encapsulate the device identifier, virtual account identifier, biometric authentication type, biometric token and business public key in the registration request message, and hand it over to the token and key manager to sign the registration request message with the device private key of the user device, and then return the registration request message to the biometric authentication client;
令牌及密钥管理器用于向身份认证检验器提供与用户最近一次通过本地生物校验时所采用生物数据对应的生物特征令牌;在收到来自身份认证检验器的注册请求报文后采用保存的所述用户设备的设备私钥对注册请求报文进行签名后返回给身份认证检验器。The token and key manager is used to provide the identity authentication verifier with a biometric token corresponding to the biometric data used by the user when passing the local biometric verification for the last time; after receiving the registration request message from the identity authentication verifier, the registration request message is signed using the stored device private key of the user device and then returned to the identity authentication verifier.
可选的,所述注册信息响应报文中还包括:认证服务器生成的所述虚拟账户的注册挑战码;所述注册请求报文中还包括:所述注册挑战码,供认证服务器在收到注册请求报文后,根据所述注册挑战码以及发送注册信息响应报文和收到注册请求报文的时间间隔,对注册请求报文进行验证。Optionally, the registration information response message also includes: the registration challenge code of the virtual account generated by the authentication server; the registration request message also includes: the registration challenge code, so that the authentication server can verify the registration request message after receiving the registration request message based on the registration challenge code and the time interval between sending the registration information response message and receiving the registration request message.
可选的,所述身份认证检验器和令牌及密钥管理器运行在所述用户设备上的安全环境中。Optionally, the identity authentication verifier and token and key manager run in a secure environment on the user device.
图10所示为本申请实施例提供的一种基于生物特征的身份注册装置,应用在认证服务器上,包括注册信息响应单元、注册请求接收单元和注册信息保存单元,其中:FIG10 shows a biometric identity registration device provided by an embodiment of the present application, which is applied to an authentication server and includes a registration information response unit, a registration request receiving unit, and a registration information storage unit, wherein:
注册信息响应单元用于从业务服务器接收来自用户设备的注册信息请求报文,所述注册信息请求报文中包括业务账户标识;生成对应于所述业务账户标识的虚拟账户标识,将虚拟账户标识和服务器公钥封装在注册信息响应报文中,采用与所述服务器公钥相对应的服务器私钥对注册信息响应报文签名后,发送给业务服务器,供业务服务器将注册信息响应报文转发给用户设备;The registration information response unit is configured to receive a registration information request message from a user device from a service server, the registration information request message including a service account identifier; generate a virtual account identifier corresponding to the service account identifier, encapsulate the virtual account identifier and the server public key in a registration information response message, sign the registration information response message using a server private key corresponding to the server public key, and send the registration information response message to the service server, for the service server to forward the registration information response message to the user device;
注册请求接收单元用于从业务服务器接收来自用户设备的注册请求报文,所述注册请求报文中包括用户设备的设备标识、虚拟账户标识、生物认证类型、生物特征令牌和业务公钥,并采用所述用户设备的设备密钥进行签名;将所述注册请求报文发送给生物认证中心服务器,接收生物认证中心服务器采用所述设备标识对应的设备公钥对注册请求报文进行验签后返回的验签结果;The registration request receiving unit is configured to receive a registration request message from a user device from a service server, the registration request message including the device identifier, virtual account identifier, biometric authentication type, biometric token, and service public key of the user device, and signed with the device key of the user device; send the registration request message to a biometric authentication center server, and receive a verification result returned by the biometric authentication center server after verifying the registration request message using the device public key corresponding to the device identifier;
注册信息保存单元用于在注册请求报文通过验签后,保存所述设备标识、虚拟账户标识、生物认证类型、生物特征令牌和业务公钥的对应关系,以用来对所述账户进行身份认证。The registration information storage unit is used to save the correspondence between the device identifier, virtual account identifier, biometric authentication type, biometric token and business public key after the registration request message passes the signature verification, so as to authenticate the account.
可选的,所述装置还包括注册挑战码生成单元,用于生成所述虚拟账户的注册挑战码;所述注册信息响应报文中还包括:所生成的注册挑战码;所述注册请求报文中还包括:注册挑战码;所述注册信息保存单元具体用于:在注册请求报文通过验签后,当注册请求报文中的注册挑战码与为注册请求报文中虚拟账户生成的注册挑战码相同、并且发送注册信息响应报文和收到注册请求报文的时间间隔在第一预定时长范围内时,保存所述设备标识、虚拟账户标识、生物认证类型、生物特征令牌和业务公钥的对应关系。Optionally, the device also includes a registration challenge code generation unit for generating a registration challenge code for the virtual account; the registration information response message also includes: the generated registration challenge code; the registration request message also includes: the registration challenge code; the registration information storage unit is specifically used to: after the registration request message passes the signature verification, when the registration challenge code in the registration request message is the same as the registration challenge code generated for the virtual account in the registration request message, and the time interval between sending the registration information response message and receiving the registration request message is within a first predetermined time range, save the correspondence between the device identifier, virtual account identifier, biometric authentication type, biometric token and business public key.
图9所示为本申请实施例提供的一种基于生物特征的身份认证装置,应用在用户设备上,包括业务客户端、生物认证中间件、生物认证客户端、身份认证检验器和令牌及密钥管理器,其中:FIG9 shows a biometric identity authentication device provided by an embodiment of the present application, which is applied to a user device and includes a service client, biometric authentication middleware, a biometric authentication client, an identity authentication verifier, and a token and key manager, wherein:
业务客户端用于向生物认证中间件发起设备信息请求,接收生物认证中间件返回的带有设备标识的设备信息响应;向业务服务器发送包括设备标识的认证信息请求报文,接收业务服务器返回的认证信息响应报文,所述认证信息响应报文由认证服务器采用服务器私钥签名后发送给业务服务器,其中包括认证服务器在收到业务服务器转发的认证信息请求报文后获取的与所述设备标识对应的虚拟账户标识、和与所述服务器私钥相对应的服务器公钥;获取注册时所采用生物认证类型的用户的生物数据,将生物数据携带在本地生物认证请求中发送给生物认证中间件,接收生物认证中间件返回的带有本地生物校验结果的本地生物认证响应;在本地生物特征校验结果为通过时,将认证信息响应报文发送给生物认证中间件,接收生物认证中间件返回的认证请求报文,所述认证请求报文包括设备标识、虚拟账户标识、生物认证类型和生物特征令牌,并采用业务私钥进行签名;将认证请求报文发送给业务服务器,所述认证请求报文由业务服务器转发给认证服务器,供认证服务器根据与虚拟账户标识、设备标识和生物认证类型对应的已注册生物特征令牌和已注册业务公钥对用户进行身份认证;The business client is used to initiate a device information request to the biometric authentication middleware and receive a device information response with a device identifier returned by the biometric authentication middleware; send an authentication information request message including a device identifier to the business server and receive an authentication information response message returned by the business server, the authentication information response message is signed by the authentication server using the server private key and sent to the business server, including the virtual account identifier corresponding to the device identifier and the server public key corresponding to the server private key obtained by the authentication server after receiving the authentication information request message forwarded by the business server; obtain the biometric data of the user of the biometric authentication type used during registration, carry the biometric data in the local biometric authentication request and send it to the The biometric authentication middleware receives a local biometric authentication response with a local biometric verification result returned by the biometric authentication middleware; when the local biometric verification result is passed, sends an authentication information response message to the biometric authentication middleware, receives an authentication request message returned by the biometric authentication middleware, the authentication request message including the device identifier, the virtual account identifier, the biometric authentication type and the biometric token, and is signed with a business private key; sends the authentication request message to the business server, and the business server forwards the authentication request message to the authentication server for the authentication server to authenticate the user based on the registered biometric token and the registered business public key corresponding to the virtual account identifier, the device identifier and the biometric authentication type;
生物认证中间件用于从业务客户端接收并向生物认证客户端转发设备信息请求,从生物认证客户端接收并向业务客户端转发设备信息响应;从业务客户端接收并向生物认证客户端转发本地生物认证请求,从生物认证客户端接收并向业务客户端转发本地生物认证响应;从业务客户端接收并向生物认证客户端转发认证信息响应报文,从生物认证客户端接收并向业务客户端转发认证请求报文;The biometric authentication middleware is used to receive and forward device information requests from the business client and forward device information responses from the biometric authentication client to the business client; receive and forward local biometric authentication requests from the business client and forward local biometric authentication responses from the biometric authentication client to the business client; receive and forward authentication information response messages from the business client and forward authentication request messages from the biometric authentication client to the business client;
生物认证客户端用于从生物认证中间件接收并向身份认证检验器转发设备信息请求,从身份认证检验器接收并向生物认证中间件转发设备信息响应;从生物认证中间件接收本地生物认证请求,利用本地生物认证请求中的生物数据对用户身份进行生物特征校验并将校验结果在本地生物认证响应中返回给生物认证中间件;从生物认证中间件接收并向身份认证检验器转发认证信息响应报文,从身份认证检验器接收并向生物认证中间件转发认证请求报文;The biometric authentication client is configured to receive and forward device information requests from the biometric authentication middleware and the identity authentication verifier, and to receive and forward device information responses from the identity authentication verifier to the biometric authentication middleware; receive local biometric authentication requests from the biometric authentication middleware, perform biometric feature verification on the user's identity using the biometric data in the local biometric authentication request, and return the verification result to the biometric authentication middleware in the local biometric authentication response; receive and forward authentication information response messages from the biometric authentication middleware and the identity authentication verifier, and receive and forward authentication request messages from the identity authentication verifier to the biometric authentication middleware;
身份认证检验器用于在收到生物认证客户端转发的设备信息请求后,获取所述用户设备包括设备标识的设备信息并将所述设备信息携带在设备信息响应中返回给生物认证客户端;在收到生物认证客户端转发的认证信息响应报文后,采用认证信息响应报文中的服务器公钥对认证信息响应报文进行验签,在验签通过后从令牌及密钥管理器获取与用户最近一次通过本地生物校验时所采用生物数据对应的生物特征令牌,在保存的虚拟账户标识、生物认证类型、生物特征令牌、和业务私钥的对应关系中获取与所述生物认证类型、认证信息响应报文中的虚拟账户标识和生物特征令牌对应的业务私钥,将设备标识、虚拟账户标识、生物认证类型和生物特征令牌封装在认证请求报文中,并采用业务私钥对认证请求报文签名后,返回给生物认证客户端;The identity authentication verifier is used to, after receiving a device information request forwarded by the biometric authentication client, obtain the device information of the user device including the device identifier and return the device information to the biometric authentication client by carrying the device information in the device information response; after receiving the authentication information response message forwarded by the biometric authentication client, use the server public key in the authentication information response message to verify the signature of the authentication information response message, obtain the biometric token corresponding to the biometric data used when the user passed the local biometric verification for the last time from the token and key manager after the signature verification is passed, obtain the business private key corresponding to the biometric authentication type, the virtual account identifier and the biometric token in the authentication information response message from the saved correspondence between the virtual account identifier, the biometric authentication type, the biometric token, and the business private key, encapsulate the device identifier, the virtual account identifier, the biometric authentication type and the biometric token in the authentication request message, sign the authentication request message with the business private key, and then return it to the biometric authentication client;
令牌及密钥管理器用于向身份认证检验器提供与用户最近一次通过本地生物校验时所采用生物数据对应的生物特征令牌。The token and key manager is used to provide the identity verification device with a biometric token corresponding to the biometric data used by the user when he or she passed the local biometric verification the last time.
可选的,所述认证信息响应报文中还包括:认证服务器生成的所述虚拟账户的认证挑战码;所述认证请求报文中还包括:由身份认证检验器封装的所述认证挑战码,供认证服务器在收到认证请求报文后,根据所述认证挑战码以及发送认证信息响应报文和收到认证请求报文的时间间隔,对认证请求报文进行验证。Optionally, the authentication information response message also includes: an authentication challenge code of the virtual account generated by the authentication server; the authentication request message also includes: the authentication challenge code encapsulated by the identity authentication verifier, so that the authentication server can verify the authentication request message after receiving the authentication request message based on the authentication challenge code and the time interval between sending the authentication information response message and receiving the authentication request message.
可选的,所述身份认证检验器和令牌及密钥管理器运行在所述用户设备上的安全环境中。Optionally, the identity authentication verifier and token and key manager run in a secure environment on the user device.
图11所示为本申请实施例提供的一种基于生物特征的身份认证装置,应用在认证服务器上,包括认证信息响应单元、认证请求接收单元和验签及认证单元,其中:FIG11 shows a biometric identity authentication device provided by an embodiment of the present application, which is applied to an authentication server and includes an authentication information response unit, an authentication request receiving unit, and a signature verification and authentication unit, wherein:
认证信息响应单元用于从业务服务器接收来自用户设备的认证信息请求报文,所述认证信息请求报文中包括用户设备的设备标识;获取对应于所述设备标识的虚拟账户标识,将虚拟账户标识和服务器公钥封装在认证信息响应报文中,采用与所述服务器公钥相对应的服务器私钥对认证信息响应报文签名后,发送给业务服务器,供业务服务器将认证信息响应报文转发给用户设备;The authentication information response unit is configured to receive an authentication information request message from a user device from a service server, the authentication information request message including a device identifier of the user device; obtain a virtual account identifier corresponding to the device identifier, encapsulate the virtual account identifier and the server public key in an authentication information response message, sign the authentication information response message using a server private key corresponding to the server public key, and send the signature to the service server, for the service server to forward the authentication information response message to the user device;
认证请求接收单元用于从业务服务器接收来自用户设备的认证请求报文,所述认证请求报文中包括用户设备的设备标识、虚拟账户标识、生物认证类型和生物特征令牌,并采用业务公钥进行签名;获取与认证请求报文中的设备标识、虚拟账户标识和生物认证类型对应的已注册生物特征令牌和已注册业务公钥;The authentication request receiving unit is configured to receive an authentication request message from a user device from a service server, the authentication request message including the device identifier, virtual account identifier, biometric authentication type, and biometric token of the user device, and signed with a service public key; obtain a registered biometric token and a registered service public key corresponding to the device identifier, virtual account identifier, and biometric authentication type in the authentication request message;
验签及认证单元用于采用已注册业务公钥对认证请求报文进行验签,并根据认证请求报文中的生物特征令牌和已注册生物特征令牌对用户进行身份认证。The signature verification and authentication unit is used to verify the signature of the authentication request message using the registered business public key, and to authenticate the user based on the biometric token in the authentication request message and the registered biometric token.
可选的,所述装置还包括:认证挑战码生成单元,用于生成所述虚拟账户的认证挑战码;所述认证信息响应报文中还包括:所生成的认证挑战码;所述认证请求报文中还包括:认证挑战码;所述验签及认证单元具体用于:当认证请求报文中的认证挑战码与为认证请求报文中虚拟账户生成的认证挑战码相同、并且发送认证信息响应报文和收到认证请求报文的时间间隔在第二预定时长范围内时,采用已注册业务公钥对认证请求报文进行验签,并根据认证请求报文中的生物特征令牌和已注册生物特征令牌对用户进行身份认证。Optionally, the device also includes: an authentication challenge code generation unit, used to generate an authentication challenge code for the virtual account; the authentication information response message also includes: the generated authentication challenge code; the authentication request message also includes: the authentication challenge code; the signature verification and authentication unit is specifically used to: when the authentication challenge code in the authentication request message is the same as the authentication challenge code generated for the virtual account in the authentication request message, and the time interval between sending the authentication information response message and receiving the authentication request message is within a second predetermined time range, use the registered business public key to verify the signature of the authentication request message, and authenticate the user based on the biometric token in the authentication request message and the registered biometric token.
以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and/or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
Claims (20)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| HK18105220.1A HK1246038B (en) | 2018-04-23 | Methods and devices for identity registration and identity authentication based on biological features |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| HK18105220.1A HK1246038B (en) | 2018-04-23 | Methods and devices for identity registration and identity authentication based on biological features |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| HK1246038A1 HK1246038A1 (en) | 2018-08-31 |
| HK1246038B true HK1246038B (en) | 2020-09-25 |
Family
ID=
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6877460B2 (en) | How and devices to register biometric identities and authenticate biometric identities | |
| CN113114624B (en) | Biometric-based identity authentication method and device | |
| JP7391860B2 (en) | Extending secure key storage for transaction confirmation and cryptocurrencies | |
| US11539526B2 (en) | Method and apparatus for managing user authentication in a blockchain network | |
| JP5514200B2 (en) | Improved biometric authentication and identification | |
| CN111414599A (en) | Identity authentication method, device, terminal, server and readable storage medium | |
| US20110099616A1 (en) | Authenticating Using Cloud Authentication | |
| KR960035299A (en) | A method for managing communication between a remote user and an application server, a subject authentication method for a remote user, a network and a program storage device providing a distributed computer environment | |
| CN106992956B (en) | Method, device and system for realizing authentication between devices | |
| CN112100594A (en) | Service processing method, device and equipment based on block chain | |
| KR102308859B1 (en) | Surrogate authentication service system and method based on biometric information | |
| US20240106823A1 (en) | Sharing a biometric token across platforms and devices for authentication | |
| HK1246038B (en) | Methods and devices for identity registration and identity authentication based on biological features | |
| CN120128356A (en) | Application Access Control | |
| JP2002366528A (en) | Security method for personal authentication | |
| CN114186209A (en) | Identity verification method and system | |
| US20240333708A1 (en) | Multi-factor enabled access using randomly selected digital identity authentication factors | |
| US12367483B1 (en) | Decentralized authorization | |
| US12425218B2 (en) | Portable identity verification context with automatic renewal or verification orchestration to mitigate decay | |
| HK1246035B (en) | Identity registration method and device based on biological features | |
| HK1246038A1 (en) | Methods and devices for identity registration and identity authentication based on biological features | |
| HK1246035A1 (en) | Identity registration method and device based on biological features | |
| HK1246035A (en) | Identity registration method and device based on biological features | |
| HK1173574B (en) | Apparatus and system for authentication using cloud authentication |