Enums¶
Details¶
- class Gcr.CertificateChainStatus(value)¶
Bases:
GLib.Enum
The status of a built certificate chain. Will be set to
Gcr.CertificateChainStatus.UNKNOWN
for certificate chains that have not been built.- UNKNOWN = 0¶
The certificate chain’s status is unknown. When a chain is not yet built it has this status. If a chain is modified after being built, it has this status.
- INCOMPLETE = 1¶
A full chain could not be loaded. The chain does not end with a self-signed certificate, a trusted anchor, or a pinned certificate.
- DISTRUSTED = 2¶
The certificate chain contains a revoked or otherwise explicitly distrusted certificate. The entire chain should be distrusted.
- SELFSIGNED = 3¶
The chain ends with a self-signed certificate. No trust anchor was found.
- PINNED = 4¶
The chain represents a pinned certificate. A pinned certificate is an exception which trusts a given certificate explicitly for a purpose and communication with a certain peer.
- ANCHORED = 5¶
The chain ends with an anchored certificate. The anchored certificate is not necessarily self-signed.
- class Gcr.CertificateRequestFormat(value)¶
Bases:
GLib.Enum
The format of a certificate request. Currently only PKCS#10 is supported.
- CERTIFICATE_REQUEST_PKCS10 = 1¶
certificate request is in PKCS#10 format
- class Gcr.DataError(value)¶
Bases:
GLib.Enum
Values responding to error codes for parsing and serializing data.
- FAILURE = -1¶
Failed to parse or serialize the data
- UNRECOGNIZED = 1¶
The data was unrecognized or unsupported
- CANCELLED = 2¶
The operation was cancelled
- LOCKED = 3¶
The data was encrypted or locked and could not be unlocked.
- class Gcr.DataFormat(value)¶
Bases:
GLib.Enum
The various format identifiers.
- ALL = -1¶
Represents all the formats, when enabling or disabling
- INVALID = 0¶
Not a valid format
- DER_PRIVATE_KEY = 100¶
DER encoded private key
- PEM = 1000¶
An OpenSSL style PEM file with unspecified contents
- PEM_PRIVATE_KEY_RSA = 1001¶
An OpenSSL style PEM file with a private RSA key
- PEM_PRIVATE_KEY_DSA = 1002¶
An OpenSSL style PEM file with a private DSA key
- PEM_CERTIFICATE_X509 = 1003¶
An OpenSSL style PEM file with an X.509 certificate
- PEM_PKCS7 = 1004¶
An OpenSSL style PEM file containing PKCS#7
- PEM_PKCS8_PLAIN = 1005¶
Unencrypted OpenSSL style PEM file containing PKCS#8
- PEM_PKCS8_ENCRYPTED = 1006¶
Encrypted OpenSSL style PEM file containing PKCS#8
- PEM_PKCS12 = 1007¶
An OpenSSL style PEM file containing PKCS#12
- PEM_PRIVATE_KEY = 1008¶
An OpenSSL style PEM file with a private key
- PEM_PKCS10 = 1009¶
An OpenSSL style PEM file containing PKCS#10
- DER_PRIVATE_KEY_RSA = 101¶
DER encoded RSA private key
- PEM_PRIVATE_KEY_EC = 1010¶
An OpenSSL style PEM file with a private EC key
- PEM_PUBLIC_KEY = 1011¶
An OpenSSL style PEM file containing a SubjectPublicKeyInfo
- DER_PRIVATE_KEY_DSA = 102¶
DER encoded DSA private key
- DER_PRIVATE_KEY_EC = 103¶
DER encoded EC private key
- DER_SUBJECT_PUBLIC_KEY = 150¶
DER encoded SubjectPublicKeyInfo
- DER_CERTIFICATE_X509 = 200¶
DER encoded X.509 certificate
- DER_PKCS7 = 300¶
DER encoded PKCS#7 container file which can contain certificates
- DER_PKCS8 = 400¶
DER encoded PKCS#8 file which can contain a key
- DER_PKCS8_PLAIN = 401¶
Unencrypted DER encoded PKCS#8 file which can contain a key
- DER_PKCS8_ENCRYPTED = 402¶
Encrypted DER encoded PKCS#8 file which can contain a key
- DER_PKCS10 = 450¶
DER encoded PKCS#10 certificate request file
- DER_SPKAC = 455¶
DER encoded SPKAC as generated by HTML5 keygen element
- BASE64_SPKAC = 456¶
OpenSSL style SPKAC data
- DER_PKCS12 = 500¶
DER encoded PKCS#12 file which can contain certificates and/or keys
- OPENSSH_PUBLIC = 600¶
OpenSSH v1 or v2 public key
- OPENPGP_PACKET = 700¶
OpenPGP key packet(s)
- OPENPGP_ARMOR = 701¶
OpenPGP public or private key armor encoded data
- class Gcr.PromptReply(value)¶
Bases:
GLib.Enum
Various replies returned by [method`Prompt`.confirm] and friends.
- CANCEL = 0¶
the prompt was cancelled
- CONTINUE = 1¶
the user replied with ‘ok’
- class Gcr.SystemPromptError(value)¶
Bases:
GLib.Enum
No error returned by the
Gcr.SystemPrompt
is suitable for display or to the user.If the system prompter can only show one prompt at a time, and there is already a prompt being displayed, and the timeout waiting to open the prompt expires, then
Gcr.SystemPromptError.SYSTEM_PROMPT_IN_PROGRESS
is returned.- SYSTEM_PROMPT_IN_PROGRESS = 1¶
another prompt is already in progress
- class Gcr.SystemPrompterMode(value)¶
Bases:
GLib.Enum
The mode for the system prompter. Most system prompters can only show one prompt at a time and would use the
Gcr.SystemPrompterMode.SINGLE
mode.- SINGLE = 0¶
only one prompt shown at a time
- MULTIPLE = 1¶
more than one prompt shown at a time