Class

GcrUiCertificateRenderer

Description [src]

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

An implementation of GcrRenderer which renders certificates.

Ancestors

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 GObject (43)

Please see GObject for a full list of methods.

Methods inherited from GcrCertificate (24)

Please see GcrCertificate for a full list of methods.

Methods inherited from GcrComparable (1)
gcr_comparable_compare

Compare whether two objects represent the same thing. The return value can also be used to sort the objects.

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 GcrCertificate (7)
Gcr-3.Certificate:description

A readable description for this certificate.

Gcr-3.Certificate:expiry

The expiry date of the certificate.

Gcr-3.Certificate:icon

An icon representing the certificate.

Gcr-3.Certificate:issuer

Common name part of the certificate issuer.

Gcr-3.Certificate:label

A readable label for this certificate.

Gcr-3.Certificate:markup

GLib markup to describe the certificate.

Gcr-3.Certificate:subject

Common name part of the certificate subject.

Properties inherited from GcrRenderer (2)
GcrRenderer:attributes

The attributes to display.

GcrRenderer:label

The label to display.

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Signals inherited from GcrRenderer (1)
GcrRenderer::data-changed

A signal that is emitted by the renderer when it’s data changed and should be rerendered.

Class structure

struct GcrUiCertificateRendererClass {
  GObjectClass parent_class;
  
}

The class for GcrCertificateRenderer.

Class members
parent_class: GObjectClass

The parent class.