[ 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 [ctor@Parser.new] 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 [
method@Parser.parse_data] or [method@Parser.parse_stream].
During the [signal@Parser:GcrParser:parsed] signal the attributes that make up the currently parsed item can be retrieved
using the [method@Parser.get_parsed_attributes] function.