### Interface

# PapersDocument DocumentSignatures

#### Description

    interface PapersDocument.DocumentSignatures : GObject.Object

No description available.

#### Prerequisite

In order to implement DocumentSignatures, your type must inherit from`GObject`.

#### Instance methods

###### pps_document_signatures_can_sign

Checks whether document supports digital signing.

###### pps_document_signatures_get_available_signing_certificates

No description available.

###### pps_document_signatures_get_certificate_info

No description available.

###### pps_document_signatures_get_signatures

No description available.

###### pps_document_signatures_has_signatures

No description available.

###### pps_document_signatures_set_password_callback

Popplers crypto backend asks for certificate password before access, so set a helper function to actually allow the user to enter his password.

###### pps_document_signatures_sign

Start the final async process of signing a document using the prepared signature.

###### pps_document_signatures_sign_finish

Finish `pps_document_signatures_sign` operation,.

#### Interface structure

    struct PapersDocumentDocumentSignaturesInterface {
      GTypeInterface base_iface;
      void (* set_password_callback) (
        PpsDocumentSignatures* document_signatures,
        PpsSignaturePasswordCallback cb,
        gpointer user_data
      );
      GList* (* get_available_signing_certificates) (
        PpsDocumentSignatures* document_signatures
      );
      PpsCertificateInfo* (* get_certificate_info) (
        PpsDocumentSignatures* document_signatures,
        const char* nick_name
      );
      void (* sign) (
        PpsDocumentSignatures* document_signatures,
        PpsSignature* signature,
        GCancellable* cancellable,
        GAsyncReadyCallback callback,
        gpointer user_data
      );
      gboolean (* sign_finish) (
        PpsDocumentSignatures* document_signatures,
        GAsyncResult* result,
        GError** error
      );
      gboolean (* can_sign) (
        PpsDocumentSignatures* document_signatures
      );
      gboolean (* has_signatures) (
        PpsDocumentSignatures* document_signatures
      );
      GList* (* get_signatures) (
        PpsDocumentSignatures* document_signatures
      );

    }

No description available.

###### Interface members

`base_iface`

    GTypeInterface

| No description available.

`set_password_callback`

    void (* set_password_callback) (
        PpsDocumentSignatures* document_signatures,
        PpsSignaturePasswordCallback cb,
        gpointer user_data
      )

| No description available.

`get_available_signing_certificates`

    GList* (* get_available_signing_certificates) (
        PpsDocumentSignatures* document_signatures
      )

| No description available.

`get_certificate_info`

    PpsCertificateInfo* (* get_certificate_info) (
        PpsDocumentSignatures* document_signatures,
        const char* nick_name
      )

| No description available.

`sign`

    void (* sign) (
        PpsDocumentSignatures* document_signatures,
        PpsSignature* signature,
        GCancellable* cancellable,
        GAsyncReadyCallback callback,
        gpointer user_data
      )

| No description available.

`sign_finish`

    gboolean (* sign_finish) (
        PpsDocumentSignatures* document_signatures,
        GAsyncResult* result,
        GError** error
      )

| No description available.

`can_sign`

    gboolean (* can_sign) (
        PpsDocumentSignatures* document_signatures
      )

| No description available.

`has_signatures`

    gboolean (* has_signatures) (
        PpsDocumentSignatures* document_signatures
      )

| No description available.

`get_signatures`

    GList* (* get_signatures) (
        PpsDocumentSignatures* document_signatures
      )

| No description available.

#### Virtual methods

###### PapersDocument.DocumentSignatures.can_sign

Checks whether document supports digital signing.

###### PapersDocument.DocumentSignatures.get_available_signing_certificates

No description available.

###### PapersDocument.DocumentSignatures.get_certificate_info

No description available.

###### PapersDocument.DocumentSignatures.get_signatures

No description available.

###### PapersDocument.DocumentSignatures.has_signatures

No description available.

###### PapersDocument.DocumentSignatures.set_password_callback

Popplers crypto backend asks for certificate password before access, so set a helper function to actually allow the user to enter his password.

###### PapersDocument.DocumentSignatures.sign

No description available.

###### PapersDocument.DocumentSignatures.sign_finish

Finish `pps_document_signatures_sign` operation,.