Companion

public class Companion

Properties

Link copied to clipboard
private FileDownloadSession fileDownloadSession
Link copied to clipboard
public final static SenseCryptUtil.Companion INSTANCE
Link copied to clipboard

The face analyzer for liveness checks

Functions

Link copied to clipboard
public final FileDownloadResult downloadModels(Context context, List<FileDownloadInfo> fileDownloadInfo, String outputPath)

Downloads models based on the provided file download information and output path.

Link copied to clipboard
public final ByteArray generateSensePrint(Context context, SensePrintGenerationData spGenerationData, 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 FileDownloadResult getDownloadStatus()

Retrieves the current download status of the ongoing file download session.

Link copied to clipboard
public final FileDownloadSession getFileDownloadSession()
Link copied to clipboard
public final LicenseInfo getLicenseInfo()

Get the license info

Link copied to clipboard

The face analyzer for liveness checks

Link copied to clipboard
public final PassiveFaceCaptureSession getPassiveFaceCaptureSession(Context context)

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(Context 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, Context context)

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 ByteArray refreshSensePrint(Context context, ByteArray prevSensePrintBytes, String password, SessionHolder sessionHolder)

Refresh an existing SensePrint using the captured face. Returns a JPEG-encoded QR code image that wraps the new (refreshed) SensePrint bytes. Liveness flag and metadata are taken from the previous SensePrint.

Link copied to clipboard
public final Unit setFileDownloadSession(FileDownloadSession fileDownloadSession)
Link copied to clipboard
private final Unit setLivenessAnalyzer(LivenessAnalyzer livenessAnalyzer)

The face analyzer for liveness checks

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

Verify the password

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

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