Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# FaceLicense.checkLicenseBufferWithCard Method

Module: FaceLicense

## Definition

Checks the license using a buffer containing the license data and a card-based verification process.

It outputs a challenge response for further verification.

Python

    @staticmethod
    check_license_buffer_with_card(license_data: bytearray) -> bytearray

Parameters

> `license_data` bytearray
> in A buffer containing the license file data.

Returns

> `bytearray`
> An array to hold the challenge response generated by the host.
> This 16-byte array is used in the license verification process.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Dart

    static Uint8List checkLicenseBufferWithCard(Uint8List? licenseData)

Parameters

> `licenseData` Uint8List
> in A buffer containing the license file data.

Returns

> `Uint8List`
> An array to hold the challenge response generated by the host.
> This 16-byte array is used in the license verification process.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C#

    public static byte[] CheckLicenseBufferWithCard(byte[] licenseData)

Parameters

> `licenseData` byte[]
> in A buffer containing the license file data.

Returns

> `byte[]`
> An array to hold the challenge response generated by the host.
> This 16-byte array is used in the license verification process.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Java

    public static byte[] checkLicenseBufferWithCard(byte[] licenseData) throws FaceException

Parameters

> `licenseData` byte[]
> in A buffer containing the license file data.

Returns

> `byte[]`
> An array to hold the challenge response generated by the host.
> This 16-byte array is used in the license verification process.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Swift

    public static func checkLicenseBufferWithCard(licenseData: [UInt8]) throws -> [UInt8]

Parameters

> `licenseData` [UInt8]
> in A buffer containing the license file data.

Returns

> `[UInt8]`
> An array to hold the challenge response generated by the host.
> This 16-byte array is used in the license verification process.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C

    int id3FaceLicense_CheckLicenseBufferWithCard (
        unsigned char * licenseData,
        int licenseDataSize,
        unsigned char * challengeR1,
        int * challengeR1Size)

Parameters

> `licenseData` unsigned char *
> in A buffer containing the license file data.
> `licenseDataSize` int
> in Size of the ‘licenseData’ buffer.
> `challengeR1` unsigned char *
> out An array to hold the challenge response generated by the host.
> `challengeR1Size` int *
> in Size of the ‘challengeR1’ buffer. Receives the number of elements in the ‘challengeR1’ array.

Returns

> `int`
> An error code.
> See id3FaceError file for the list of possible error codes.