gmime.certificate
Module for [Certificate] class
Types 3
An object containing useful information about a certificate.
Methods
Certificate self()Returns `this`, for use in `with` statements.CertificateGidBuilder builder()Get builder for [gmime.certificate.Certificate] Returns: New builder objectlong getCreated()Get the creation date of the certificate's key. Returns: the creation date of the certificate's key or %-1 if unknown.long getCreated64()Get 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()Get the digest algorithm used by the certificate. Returns: the digest algorithm used by the certificate or #GMIMEDIGESTALGO_DEFAULT if unspecified.string getEmail()Get 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()Get 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()Get 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()Get the certificate's key fingerprint. Returns: the certificate's key fingerprint or null if unspecified.gmime.types.Validity getIdValidity()Get 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()Get the certificate's issuer name. Returns: the certificate's issuer name or null if unspecified.string getIssuerSerial()Get the certificate's issuer serial. Returns: the certificate's issuer serial or null if unspecified.string getKeyId()Get the certificate's key id. Returns: the certificate's key id or null if unspecified.string getName()Get 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()Get the public-key algorithm used by the certificate. Returns: the public-key algorithm used by the certificate or #GMIMEPUBKEYALGO_DEFAULT if unspecified.gmime.types.Trust getTrust()Get the certificate trust. Returns: the certificate trust.string getUserId()Get 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)Set the creation date of the certificate's key.void setDigestAlgo(gmime.types.DigestAlgo algo)Set the digest algorithm used by the certificate.void setEmail(string email)Set the email address associated with the certificate. (e.g. "jane\example.org")void setExpires(long expires)Set the expiration date of the certificate's key. A value of `0` means the certificate never expires.void setFingerprint(string fingerprint)Set the certificate's key fingerprint.void setIdValidity(gmime.types.Validity validity)Set the validity associated with the certificate's name, email, and user_id.void setIssuerName(string issuerName)Set the certificate's issuer name.void setIssuerSerial(string issuerSerial)Set the certificate's issuer serial.void setKeyId(string keyId)Set the certificate's key id.void setName(string name)Set 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)Set the public-key algorithm used by the certificate.void setTrust(gmime.types.Trust trust)Set the certificate trust.void setUserId(string userId)Set 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>")Fluent builder for [gmime.certificate.Certificate]
Methods