Parser


Object Hierarchy:

Gcr.Parser Gcr.Parser Gcr.Parser GLib.Object GLib.Object GLib.Object->Gcr.Parser

Description:

[ CCode ( type_id = "gcr_parser_get_type ()" ) ]
public class Parser : Object

A parser for parsing various types of files or data.

A `GcrParser` can parse various certificate and key files such as OpenSSL PEM files, DER encoded certifictes, PKCS#8 keys and so on. Each various format is identified by a value in the [enum@DataFormat] enumeration.

In order to parse data, a new parser is created with Parser and then the [ signal@Parser:GcrParser:authenticate] and [signal@Parser:GcrParser:parsed] signals should be connected to. Data is then fed to the parser via [[email protected]_data] or [[email protected]_stream].

During the [signal@Parser:GcrParser:parsed] signal the attributes that make up the currently parsed item can be retrieved using the [[email protected]_parsed_attributes] function.


Namespace: Gcr
Package: gcr-3

Content:

Properties:

Creation methods:

Methods:

Signals:

Inherited Members:

All known members inherited from class GLib.Object



2022 vala-language.org