.. index:: 
  !FaceLicense.finalizeCheckLicenseWithCard Method
  
.. _id3_face_face_license_finalize_check_license_with_card_class_method:

===============================================================================
FaceLicense.finalizeCheckLicenseWithCard Method
===============================================================================

Module: :ref:`FaceLicense<id3_face_face_license_class>`

Definition
----------

Finalizes the license check process using the provided cryptogram.

It ensures the integrity and authenticity of the license verification.


.. tab-set::

    .. tab-item:: Python
      :sync: Python

      .. code:: Python

        @staticmethod
        finalize_check_license_with_card(cryptogram: bytearray) -> None

      **Parameters**

        .. line-block::

          ``cryptogram`` bytearray
          :guilabel:`in` A 32-byte array containing the cryptogram used for final verification.


      **Exceptions**

        .. line-block::

          :ref:`FaceException<id3_face_face_exception>`
          An error has occurred during Face Library execution.


    .. tab-item:: Dart
      :sync: Dart

      .. code:: Dart

        static void finalizeCheckLicenseWithCard(Uint8List? cryptogram)

      **Parameters**

        .. line-block::

          ``cryptogram`` Uint8List
          :guilabel:`in` A 32-byte array containing the cryptogram used for final verification.


      **Exceptions**

        .. line-block::

          :ref:`FaceException<id3_face_face_exception>`
          An error has occurred during Face Library execution.


    .. tab-item:: C#
      :sync: C#

      .. code:: C#

        public static void FinalizeCheckLicenseWithCard(byte[] cryptogram)

      **Parameters**

        .. line-block::

          ``cryptogram`` byte[]
          :guilabel:`in` A 32-byte array containing the cryptogram used for final verification.


      **Exceptions**

        .. line-block::

          :ref:`FaceException<id3_face_face_exception>`
          An error has occurred during Face Library execution.


    .. tab-item:: Java
      :sync: Java

      .. code:: Java

        public static void finalizeCheckLicenseWithCard(byte[] cryptogram) throws FaceException

      **Parameters**

        .. line-block::

          ``cryptogram`` byte[]
          :guilabel:`in` A 32-byte array containing the cryptogram used for final verification.


      **Exceptions**

        .. line-block::

          :ref:`FaceException<id3_face_face_exception>`
          An error has occurred during Face Library execution.


    .. tab-item:: Swift
      :sync: Swift

      .. code:: Swift

        public static func finalizeCheckLicenseWithCard(cryptogram: [UInt8]) throws

      **Parameters**

        .. line-block::

          ``cryptogram`` [UInt8]
          :guilabel:`in` A 32-byte array containing the cryptogram used for final verification.


      **Exceptions**

        .. line-block::

          :ref:`FaceException<id3_face_face_exception>`
          An error has occurred during Face Library execution.


    .. tab-item:: C
      :sync: C

      .. code:: C

        int id3FaceLicense_FinalizeCheckLicenseWithCard (
            unsigned char * cryptogram, 
            int cryptogramSize)

      **Parameters**

        .. line-block::

          ``cryptogram`` unsigned char *
          :guilabel:`in` A 32-byte array containing the cryptogram used for final verification.

          ``cryptogramSize`` int
          :guilabel:`in` Size of the 'cryptogram' buffer.


      **Returns**

        .. line-block::

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


