Companion

public class Companion

Properties

Link copied to clipboard
public final static SenseCryptUtil.Companion INSTANCE

Functions

Link copied to clipboard
private final String checkAndDownloadFiles(Context context, List<String> fileUrls)

Function to check if files exist or download them if they don't

Link copied to clipboard
public final String downloadFilesInBackground(Context context, List<String> fileUrls)

Download the file in the background

Link copied to clipboard
public final String downloadFilesToInternalStorage(Context context, List<String> fileUrls)

Function to download files and save them in application storage

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 String getFileNameFromUrl(String url)

Function to extract the file name from the URL

Link copied to clipboard
public final LicenseInfo getLicenseInfo()

Get the license info

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(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)