Class

GcrUiCertificateRenderer

Description [src]

class GcrUi.CertificateRenderer : GObject.Object {
  parent: GObject
}

An implementation of GcrRenderer which renders certificates.

Ancestors

  • GObject

Implements

Constructors

gcr_certificate_renderer_new

Create a new certificate renderer to display the certificate.

gcr_certificate_renderer_new_for_attributes

Create a new certificate renderer to display the label and attributes. One of the attributes should be a CKA_VALUE type attribute containing a DER encoded certificate.

Instance methods

gcr_certificate_renderer_get_certificate

Get the certificate displayed in the renderer. If no certificate was explicitly set, then the renderer will return itself since it acts as a valid certificate.

gcr_certificate_renderer_set_certificate

Set a certificate to display in the renderer.

Methods inherited from GcrRenderer (5)
gcr_renderer_emit_data_changed

Emit the GcrRenderer::data-changed signal on the renderer. This is used by renderer implementations.

gcr_renderer_get_attributes

Get the PKCS#11 attributes, if any, set for this renderer to display.

gcr_renderer_popuplate_popup

Called by GcrViewer when about to display a popup menu for the content displayed by the renderer. The renderer can add a menu item if desired.

gcr_renderer_render_view

Render the contents of the renderer to the given viewer.

gcr_renderer_set_attributes

Set the PKCS#11 attributes for this renderer to display.

Properties

GcrUi.CertificateRenderer:attributes

The certificate attributes to display. One of the attributes must be a CKA_VALUE type attribute which contains a DER encoded certificate.

GcrUi.CertificateRenderer:certificate

The certificate to display. May be NULL.

GcrUi.CertificateRenderer:label

The label to display.

Properties inherited from GcrRenderer (2)
GcrUi.Renderer:attributes

The attributes to display.

GcrUi.Renderer:label

The label to display.

Class structure

struct GcrUiCertificateRendererClass {
  GObjectClass parent_class;
  
}
Class members
parent_class
GObjectClass
 

The parent class.