SessionHolder

public class SessionHolder

A instance of SessionHolder either holds a passive capture session or an active capture session.

  • The passive face capture session.

    Declaration

    Swift

    var passiveCaptureSession: PassiveFaceCaptureSession?
  • The active face capture session.

    Declaration

    Swift

    var activeCaptureSession: ActiveFaceCaptureSession?
  • Initializes the session holder with a passive capture session.

    Declaration

    Swift

    init(passiveCaptureSession: PassiveFaceCaptureSession)

    Parameters

    passiveCaptureSession

    The passive capture session to set.

  • Initializes the session holder with an active capture session.

    Declaration

    Swift

    init(activeCaptureSession: ActiveFaceCaptureSession)

    Parameters

    activeCaptureSession

    The active capture session to set.

  • Generates a SensePrint QR code.

    Throws

    An error if the session is not defined.

    Declaration

    Swift

    func generateSensePrintQR(request: SensePrintQrMobileRequest) throws -> Data

    Parameters

    request

    The SensePrint QR code request.

    Return Value

    The generated SensePrint QR code data.

  • Decrypts a SensePrint.

    Throws

    An error if the session is not defined.

    Declaration

    Swift

    func decryptSensePrint(password: String, sensePrint: Data) -> Result<DecryptedSensePrintData, SDKErrors>

    Parameters

    password

    The password for decryption.

    sensePrint

    The SensePrint data to decrypt.

    Return Value

    The decrypted SensePrint data.

  • Verifies a SensePrint.

    Throws

    An error if the session is not defined.

    Declaration

    Swift

    private func verifySensePrintInternal(request: SensePrintRawVerificationMobileRequest) throws -> DecryptedSensePrintData

    Parameters

    request

    The SensePrint verification request.

    Return Value

    The decrypted SensePrint data.