.. index:: 
  !DocumentLicense.finalizeCheckLicenseWithCard Method
  
.. _id3_document_document_license_finalize_check_license_with_card_class_method:

===============================================================================
DocumentLicense.finalizeCheckLicenseWithCard Method
===============================================================================

Module: :ref:`DocumentLicense<id3_document_document_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:`DocumentException<id3_document_document_exception>`
          An error has occurred during Document 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:`DocumentException<id3_document_document_exception>`
          An error has occurred during Document 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:`DocumentException<id3_document_document_exception>`
          An error has occurred during Document Library execution.


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

      .. code:: Java

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

      **Parameters**

        .. line-block::

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


      **Exceptions**

        .. line-block::

          :ref:`DocumentException<id3_document_document_exception>`
          An error has occurred during Document 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:`DocumentException<id3_document_document_exception>`
          An error has occurred during Document Library execution.


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

      .. code:: C

        int id3DocumentLicense_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:`id3DocumentError<id3_document_document_error_enum>` file for the list of possible error codes.


