Class DatavalidOptions
- Namespace
- NuvTools.Security.Biometrics.Serpro
- Assembly
- NuvTools.Security.Biometrics.Serpro.dll
Configuration for facial verification through SERPRO Datavalid.
public sealed class DatavalidOptions
- Inheritance
-
DatavalidOptions
- Inherited Members
Remarks
Datavalid compares the capture with the face on government record for the CPF and answers with a similarity. The application decides what counts as a match through MinSimilarity and AcceptedLiveness.
Fields
SectionName
Configuration section name this options class binds to.
public const string SectionName = "Datavalid"
Field Value
Properties
AcceptedLiveness
Liveness values, as SERPRO reports them, that are accepted. Compared ignoring case. Empty (the default) leaves the liveness decision to SERPRO alone and only reports the value.
public IList<string> AcceptedLiveness { get; set; }
Property Value
Remarks
Set it from the values the contracted API version documents: once it holds any value, a capture whose liveness is missing or not listed is refused, whatever its similarity.
ConsumerKey
Consumer key of the contract. Server-side only.
public string ConsumerKey { get; set; }
Property Value
ConsumerSecret
Consumer secret of the contract. Server-side only — it is never exposed to the client.
public string ConsumerSecret { get; set; }
Property Value
MinSimilarity
Lowest similarity (0.0 to 1.0) accepted as a match. Defaults to 0.9, where SERPRO's "high probability" band begins; below it a partial face can pass.
public double MinSimilarity { get; set; }
Property Value
TokenUrl
Endpoint that issues the access token for the SERPRO API gateway.
public string TokenUrl { get; set; }
Property Value
ValidateUrl
Endpoint of the facial validation, which carries the contracted API version.
public string ValidateUrl { get; set; }