:right-sidebar: True Pkcs11Certificate =================================================================== .. currentmodule:: gi.repository.Gcr .. class:: Pkcs11Certificate(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Gck.Object`, :class:`~gi.repository.GObject.Object` Implemented Interfaces: :class:`~gi.repository.Gcr.Certificate` :Constructors: :: Pkcs11Certificate(**properties) Methods ------- .. rst-class:: interim-class .. class:: Pkcs11Certificate :no-index: .. method:: get_attributes() -> ~gi.repository.Gck.Attributes Access the automatically loaded attributes for this certificate. .. method:: lookup_issuer(certificate: ~gi.repository.Gcr.Certificate, cancellable: ~gi.repository.Gio.Cancellable | None = None) -> ~gi.repository.Gcr.Certificate Lookup a the issuer of a ``certificate`` in the PKCS#11 storage. The lookup is done using the issuer DN of the certificate. No certificate chain verification is done. Use a crypto library to make trust decisions. This call may block, see :func:`~gi.repository.Gcr.Pkcs11Certificate.lookup_issuer` for the non-blocking version. Will return :const:`None` if no issuer certificate is found. Use ``error`` to determine if an error occurred. :param certificate: a :obj:`~gi.repository.Gcr.Certificate` :param cancellable: a :obj:`~gi.repository.Gio.Cancellable` .. method:: lookup_issuer_async(certificate: ~gi.repository.Gcr.Certificate, cancellable: ~gi.repository.Gio.Cancellable | None = None, callback: ~typing.Callable[[...], None] | None = None, *user_data: ~typing.Any) -> None Lookup a the issuer of a ``certificate`` in the PKCS#11 storage. The lookup is done using the issuer DN of the certificate. No certificate chain verification is done. Use a crypto library to make trust decisions. When the operation is finished, callback will be called. You can then call :func:`~gi.repository.Gcr.Pkcs11Certificate.lookup_issuer_finish` to get the result of the operation. :param certificate: a :obj:`~gi.repository.Gcr.Certificate` :param cancellable: a :obj:`~gi.repository.Gio.Cancellable` :param callback: a :obj:`~gi.repository.Gio.AsyncReadyCallback` to call when the operation completes :param user_data: the data to pass to callback function .. method:: lookup_issuer_finish(result: ~gi.repository.Gio.AsyncResult) -> ~gi.repository.Gcr.Certificate Finishes an asynchronous operation started by :func:`~gi.repository.Gcr.Pkcs11Certificate.lookup_issuer_async`. Will return :const:`None` if no issuer certificate is found. Use ``error`` to determine if an error occurred. :param result: the :obj:`~gi.repository.Gio.AsyncResult` passed to the callback .. method:: new_from_uri(pkcs11_uri: str, cancellable: ~gi.repository.Gio.Cancellable | None = None) -> ~gi.repository.Gcr.Certificate | None Lookup a certificate in the PKCS#11 storage by the given URI. This call may block, see :func:`~gi.repository.Gcr.Pkcs11Certificate.new_from_uri_async` for the non-blocking version. Will return :const:`None` if no certificate is found. Use ``error`` to determine if an error occurred. :param pkcs11_uri: a A PKCS \``11`` URI :param cancellable: a :obj:`~gi.repository.Gio.Cancellable` .. method:: new_from_uri_async(pkcs11_uri: str, cancellable: ~gi.repository.Gio.Cancellable | None = None, callback: ~typing.Callable[[...], None] | None = None, *user_data: ~typing.Any) -> None Lookup a certificate in the PKCS#11 storage by the given URI. When the operation is finished, callback will be called. You can then call :func:`~gi.repository.Gcr.Pkcs11Certificate.new_from_uri_finish` to get the result of the operation. :param pkcs11_uri: a A PKCS \``11`` URI :param cancellable: a :obj:`~gi.repository.Gio.Cancellable` :param callback: a :obj:`~gi.repository.Gio.AsyncReadyCallback` to call when the operation completes :param user_data: the data to pass to callback function .. method:: new_from_uri_finish(result: ~gi.repository.Gio.AsyncResult) -> ~gi.repository.Gcr.Certificate | None Finishes an asynchronous operation started by :func:`~gi.repository.Gcr.Pkcs11Certificate.new_from_uri_async`. Will return :const:`None` if no certificate is found. Use ``error`` to determine if an error occurred. :param result: the :obj:`~gi.repository.Gio.AsyncResult` passed to the callback Properties ---------- .. rst-class:: interim-class .. class:: Pkcs11Certificate :no-index: .. attribute:: props.attributes :type: ~gi.repository.Gck.Attributes Automatically loaded attributes for this certificate. Fields ------ .. rst-class:: interim-class .. class:: Pkcs11Certificate :no-index: .. attribute:: parent .. attribute:: pv