QtPass 1.7.0
Multi-platform GUI for pass, the standard unix password manager.
Loading...
Searching...
No Matches
UserInfo Struct Reference

Stores GPG key info including validity, creation date, and more. More...

#include <userinfo.h>

Public Member Functions

 UserInfo ()
 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.
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
 Whether secret key is available (can decrypt with this key).
bool enabled
 Whether this user/key is enabled for normal use.
QDateTime expiry
 Date/time when key expires.
QDateTime created
 Date/time when key was created.

Detailed Description

Stores GPG key info including validity, creation date, and more.

Definition at line 13 of file userinfo.h.

Constructor & Destructor Documentation

◆ UserInfo()

UserInfo::UserInfo ( )
inline

Construct a UserInfo with default (invalid/disabled) state.

Definition at line 17 of file userinfo.h.

Member Function Documentation

◆ fullyValid()

auto UserInfo::fullyValid ( ) const -> bool
inline

Check full validity per GnuPG validity codes.

Returns
true when validity is 'f' or 'u'. http://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=blob_plain;f=doc/DETAILS

Definition at line 24 of file userinfo.h.

Here is the caller graph for this function:

◆ isValid()

auto UserInfo::isValid ( ) const -> bool
inline

Check whether the key has any usable validity level.

Returns
true when fullyValid() or marginallyValid() is true.

Definition at line 37 of file userinfo.h.

Here is the call graph for this function:

◆ marginallyValid()

auto UserInfo::marginallyValid ( ) const -> bool
inline

Check marginal validity per GnuPG validity codes.

Returns
true when validity is 'm'. http://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=blob_plain;f=doc/DETAILS

Definition at line 32 of file userinfo.h.

Here is the caller graph for this function:

Member Data Documentation

◆ created

QDateTime UserInfo::created

Date/time when key was created.

Definition at line 67 of file userinfo.h.

◆ enabled

bool UserInfo::enabled

Whether this user/key is enabled for normal use.

Definition at line 59 of file userinfo.h.

◆ expiry

QDateTime UserInfo::expiry

Date/time when key expires.

Definition at line 63 of file userinfo.h.

◆ have_secret

bool UserInfo::have_secret

Whether secret key is available (can decrypt with this key).

Definition at line 55 of file userinfo.h.

◆ key_id

QString UserInfo::key_id

Hexadecimal representation of the GnuPG key identifier.

Definition at line 46 of file userinfo.h.

◆ name

QString UserInfo::name

GPG user ID / full name.

Definition at line 42 of file userinfo.h.

◆ validity

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 51 of file userinfo.h.


The documentation for this struct was generated from the following file: