gmime.certificate

Module for [Certificate] class

Types 3

An object containing useful information about a certificate.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
Certificate self() nothrowReturns `this`, for use in `with` statements.
CertificateGidBuilder builder() static nothrowGet builder for [gmime.certificate.Certificate] Returns: New builder object
long getCreated() nothrowGet the creation date of the certificate's key. Returns: the creation date of the certificate's key or %-1 if unknown.
long getCreated64() nothrowGet the creation date of the certificate's key in seconds since the UNIX epoch, represented as a 64-bit signed integer. Returns: the creation date of the certificate's key or %-1 if unknown.
gmime.types.DigestAlgo getDigestAlgo() nothrowGet the digest algorithm used by the certificate. Returns: the digest algorithm used by the certificate or #GMIME_DIGEST_ALGO_DEFAULT if unspecified.
string getEmail() nothrowGet the email address associated with the certificate. If the certificate contains more than one email address with different validities, the email address with the highest validity is returned. ...
long getExpires() nothrowGet the expiration date of the certificate's key. A value of `0` means the certificate never expires. Returns: the expiration date of the certificate's key or %-1 if unknown.
long getExpires64() nothrowGet the expiration date of the certificate's key in seconds since the UNIX epoch, represented as a 64-bit signed integer. A value of `0` means the certificate never expires. Returns: the expiration...
string getFingerprint() nothrowGet the certificate's key fingerprint. Returns: the certificate's key fingerprint or null if unspecified.
gmime.types.Validity getIdValidity() nothrowGet the validity of the certificate's identity information. This validity applies to the name, email, and user_id fields associated with the certificate. Returns: the identity validity of the cert...
string getIssuerName() nothrowGet the certificate's issuer name. Returns: the certificate's issuer name or null if unspecified.
string getIssuerSerial() nothrowGet the certificate's issuer serial. Returns: the certificate's issuer serial or null if unspecified.
string getKeyId() nothrowGet the certificate's key id. Returns: the certificate's key id or null if unspecified.
string getName() nothrowGet the name associated with the certificate. For email certificates, this is usually the name of the person who controls the certificate (encoded in UTF-8). If the certificate contains more than...
gmime.types.PubKeyAlgo getPubkeyAlgo() nothrowGet the public-key algorithm used by the certificate. Returns: the public-key algorithm used by the certificate or #GMIME_PUBKEY_ALGO_DEFAULT if unspecified.
gmime.types.Trust getTrust() nothrowGet the certificate trust. Returns: the certificate trust.
string getUserId() nothrowGet the certificate's full User ID. If the certificate contains more than one User ID with different validities, the User ID with the highest validity is returned. If more than one User ID appear...
void setCreated(long created) nothrowSet the creation date of the certificate's key.
void setDigestAlgo(gmime.types.DigestAlgo algo) nothrowSet the digest algorithm used by the certificate.
void setEmail(string email) nothrowSet the email address associated with the certificate. (e.g. "jane\example.org")
void setExpires(long expires) nothrowSet the expiration date of the certificate's key. A value of `0` means the certificate never expires.
void setFingerprint(string fingerprint) nothrowSet the certificate's key fingerprint.
void setIdValidity(gmime.types.Validity validity) nothrowSet the validity associated with the certificate's name, email, and user_id.
void setIssuerName(string issuerName) nothrowSet the certificate's issuer name.
void setIssuerSerial(string issuerSerial) nothrowSet the certificate's issuer serial.
void setKeyId(string keyId) nothrowSet the certificate's key id.
void setName(string name) nothrowSet the name associated with the certificate. For email certificates, this is usually the name of the person who controls the certificate (encoded in UTF-8). (e.g. "Jane Doe")
void setPubkeyAlgo(gmime.types.PubKeyAlgo algo) nothrowSet the public-key algorithm used by the certificate.
void setTrust(gmime.types.Trust trust) nothrowSet the certificate trust.
void setUserId(string userId) nothrowSet the certificate's full User ID. By convention, this is usually a mail name-addr as described in RFC 5322. (e.g. "Jane Doe <jane\example.org>")
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new #GMimeCertificate object. Returns: a new #GMimeCertificate object.
Methods
Certificate build() nothrowCreate object from builder. Returns: New object