libzypp
13.10.6
|
Class representing one GPG Public Keys data. More...
#include <PublicKey.h>
Classes | |
class | Impl |
PublicKeyData implementation. More... | |
Public Member Functions | |
PublicKeyData () | |
Default constructed: empty data. More... | |
~PublicKeyData () | |
operator bool () const | |
Whether this contains valid data (not default constructed). More... | |
std::string | id () const |
Key ID. More... | |
std::string | name () const |
Key name. More... | |
std::string | fingerprint () const |
Key fingerprint. More... | |
Date | created () const |
Creation / last modification date (latest selfsig). More... | |
Date | expires () const |
Expiry date, or Date() if the key never expires. More... | |
bool | expired () const |
Whether the key has expired. More... | |
int | daysToLive () const |
Number of days (24h) until the key expires (or since it exired). More... | |
std::string | expiresAsString () const |
std::string | gpgPubkeyVersion () const |
Gpg-pubkey version as computed by rpm (trailing 8 byte id) More... | |
std::string | gpgPubkeyRelease () const |
Gpg-pubkey release as computed by rpm (hexencoded created) More... | |
std::string | asString () const |
Simple string representation. More... | |
Private Attributes | |
RWCOW_pointer< Impl > | _pimpl |
Friends | |
class | PublicKeyScanner |
Scan data from 'gpg –with-colons' key listings. More... | |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &str, const PublicKeyData &obj) |
std::ostream & | dumpOn (std::ostream &str, const PublicKeyData &obj) |
bool | operator== (const PublicKeyData &lhs, const PublicKeyData &rhs) |
bool | operator!= (const PublicKeyData &lhs, const PublicKeyData &rhs) |
Class representing one GPG Public Keys data.
PublicKeyData are provided e.g. by a PublicKey or a KeyRing. PublicKeyData are usually easier to retrieve and sufficient unless you actually need an ASCII armored version of the key placed in a tempfile. In this case use PublicKey.
Definition at line 74 of file PublicKey.h.
zypp::PublicKeyData::PublicKeyData | ( | ) |
zypp::PublicKeyData::~PublicKeyData | ( | ) |
Definition at line 73 of file PublicKey.cc.
|
explicit |
Whether this contains valid data (not default constructed).
Definition at line 76 of file PublicKey.cc.
std::string zypp::PublicKeyData::id | ( | ) | const |
Key ID.
Definition at line 79 of file PublicKey.cc.
std::string zypp::PublicKeyData::name | ( | ) | const |
Key name.
Definition at line 82 of file PublicKey.cc.
std::string zypp::PublicKeyData::fingerprint | ( | ) | const |
Key fingerprint.
Definition at line 85 of file PublicKey.cc.
Date zypp::PublicKeyData::created | ( | ) | const |
Creation / last modification date (latest selfsig).
Definition at line 88 of file PublicKey.cc.
Date zypp::PublicKeyData::expires | ( | ) | const |
Expiry date, or Date()
if the key never expires.
Definition at line 91 of file PublicKey.cc.
bool zypp::PublicKeyData::expired | ( | ) | const |
Whether the key has expired.
Definition at line 94 of file PublicKey.cc.
int zypp::PublicKeyData::daysToLive | ( | ) | const |
Number of days (24h) until the key expires (or since it exired).
A value of 0
means the key will expire within the next 24h. Negative values indicate the key has expired less than N
days ago. For keys without expiration date INT_MAX
is returned.
Definition at line 97 of file PublicKey.cc.
std::string zypp::PublicKeyData::expiresAsString | ( | ) | const |
Definition at line 107 of file PublicKey.cc.
std::string zypp::PublicKeyData::gpgPubkeyVersion | ( | ) | const |
Gpg-pubkey version as computed by rpm (trailing 8 byte id)
Definition at line 134 of file PublicKey.cc.
std::string zypp::PublicKeyData::gpgPubkeyRelease | ( | ) | const |
Gpg-pubkey release as computed by rpm (hexencoded created)
Definition at line 137 of file PublicKey.cc.
std::string zypp::PublicKeyData::asString | ( | ) | const |
Simple string representation.
Encodes id, gpgPubkeyRelease, name and fingerprint.
Definition at line 140 of file PublicKey.cc.
|
friend |
Scan data from 'gpg –with-colons' key listings.
Definition at line 83 of file PublicKey.h.
|
related |
Stream output
Definition at line 149 of file PublicKey.h.
|
related |
Detailed stream output
Definition at line 150 of file PublicKey.cc.
|
related |
Equal based on fingerprint anf creation date.
Definition at line 163 of file PublicKey.cc.
|
related |
NotEqual.
Definition at line 159 of file PublicKey.h.
|
private |
Definition at line 143 of file PublicKey.h.