Companion

public class Companion

Properties

Link copied to clipboard
public final static SenseCryptUtil.Companion INSTANCE

Functions

Link copied to clipboard
public final ByteArray generateSensePrint(String record, Boolean isLivenessEnabled, HashMap<String, String> metaData, HashMap<String, String> clearTextData, String password, SessionHolder sessionHolder)

Generate a SensePrint QR code

Link copied to clipboard
public final ActiveFaceCaptureSession getActiveFaceCaptureSession()

Gets a new active face capture session

Link copied to clipboard
public final String getAppThumbprint()

Get the app thumbprint

Link copied to clipboard
public final String getDeviceId()

Get the device ID

Link copied to clipboard
public final LicenseInfo getLicenseInfo()

Get the license info

Link copied to clipboard
public final PassiveFaceCaptureSession getPassiveFaceCaptureSession()

Gets a new passive face capture session

Link copied to clipboard
public final String getSDKVersion()

Get the version of the SDK

Link copied to clipboard
public final Unit init(Application application, Function1<Result<Boolean>, Unit> callback)

Initialize the SenseCrypt SDK

Link copied to clipboard
public final Unit initSdkIfNeeded(Activity activity, Function0<Unit> postInit)

A utility method that ensures that the SDK is initialized before running a lambda. It shows a loading dialog while the SDK is being initialized. The initialization is in a separate thread.

Link copied to clipboard
private final Boolean initSynchronously(Application application)

Initialize the SenseCrypt SDK synchronously

Link copied to clipboard
private final Boolean isInitialized()

Check if the SenseCrypt SDK is initialized

Link copied to clipboard
public final Boolean isLiveFace(ByteArray imageBytes)

Check if the face is live or not

Link copied to clipboard
public final SensePrintInfo parseSensePrintBytes(ByteArray qrCodeDecodedBytes)

Get the QR code info from the decoded QR code bytes. This doesn't decrypt the SensePrint.

Link copied to clipboard
private final Result<Boolean> performInit(Application application)

Initialize the SenseCrypt SDK

Link copied to clipboard
public final Boolean verifyPassword(ByteArray sensePrintBytes, String password)

Verify the password

Link copied to clipboard
public final DecryptedSensePrintData verifySensePrint(ByteArray sensePrintBytes, String password, SessionHolder sessionHolder)

Decrypt the SensePrint data using the capture session, and the QR code bytes (SensePrint bytes)