|
QtPass 2.0.0
Developer documentation
|
Stores GPG key info including validity, creation date, and more. More...
#include <userinfo.h>
Public Member Functions | |
| UserInfo ()=default | |
| Construct a UserInfo with default (invalid/disabled) state. | |
| auto | fullyValid () const -> bool |
| Check full validity per GnuPG validity codes. | |
| auto | marginallyValid () const -> bool |
| Check marginal validity per GnuPG validity codes. | |
| auto | isValid () const -> bool |
| Check whether the key has any usable validity level. | |
Public Attributes | |
| QString | name |
| GPG user ID / full name. | |
| QString | key_id |
| Hexadecimal representation of the GnuPG key identifier. | |
| QStringList | uids |
| Every user ID on the key, revoked ones included, with gpg's colon escapes (such as \x3a) decoded: the names a recipient list may use. | |
| QStringList | subkeys |
| Key IDs and fingerprints of the key's subkeys, by which a recipient list may name the key as well. | |
| char | validity {'-'} |
| GnuPG representation of validity. http://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=blob_plain;f=doc/DETAILS. | |
| bool | have_secret {false} |
| Whether secret key is available (can decrypt with this key). | |
| bool | enabled {false} |
| Whether this user/key is enabled for normal use. | |
| QDateTime | expiry |
| Date/time when key expires. | |
| QDateTime | created |
| Date/time when key was created. | |
Stores GPG key info including validity, creation date, and more.
Definition at line 20 of file userinfo.h.
|
inline |
Check full validity per GnuPG validity codes.
Definition at line 31 of file userinfo.h.
|
inline |
Check whether the key has any usable validity level.
Definition at line 44 of file userinfo.h.
|
inline |
Check marginal validity per GnuPG validity codes.
Definition at line 39 of file userinfo.h.
| QDateTime UserInfo::created |
Date/time when key was created.
Definition at line 84 of file userinfo.h.
| bool UserInfo::enabled {false} |
Whether this user/key is enabled for normal use.
Definition at line 76 of file userinfo.h.
| QDateTime UserInfo::expiry |
Date/time when key expires.
Definition at line 80 of file userinfo.h.
| bool UserInfo::have_secret {false} |
Whether secret key is available (can decrypt with this key).
Definition at line 72 of file userinfo.h.
| QString UserInfo::key_id |
Hexadecimal representation of the GnuPG key identifier.
Definition at line 53 of file userinfo.h.
| QString UserInfo::name |
GPG user ID / full name.
Definition at line 49 of file userinfo.h.
| QStringList UserInfo::subkeys |
Key IDs and fingerprints of the key's subkeys, by which a recipient list may name the key as well.
Definition at line 63 of file userinfo.h.
| QStringList UserInfo::uids |
Every user ID on the key, revoked ones included, with gpg's colon escapes (such as \x3a) decoded: the names a recipient list may use.
Definition at line 58 of file userinfo.h.
| char UserInfo::validity {'-'} |
GnuPG representation of validity. http://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=blob_plain;f=doc/DETAILS.
Definition at line 68 of file userinfo.h.