|
libzypp 17.38.3
|
Class representing a GPG Public Keys subkeys. More...
#include <zypp-common/PublicKey.h>
Classes | |
| class | Impl |
| PublicSubkeyData implementation. More... | |
Public Member Functions | |
| PublicSubkeyData () | |
| Default constructed: empty data. | |
| ~PublicSubkeyData () | |
| operator bool () const | |
| Whether this contains valid data (not default constructed). | |
| std::string | id () const |
| Subkey ID. | |
| Date | created () const |
| Creation date. | |
| Date | expires () const |
Expiry date, or Date() if the key never expires. | |
| bool | expired () const |
| Whether the key has expired. | |
| int | daysToLive () const |
| Number of days (24h) until the key expires (or since it exired). | |
| std::string | asString () const |
| Simple string representation. | |
Private Member Functions | |
| PublicSubkeyData (const _gpgme_subkey *rawSubKeyData) | |
Private Attributes | |
| RWCOW_pointer< Impl > | _pimpl |
Friends | |
| class | PublicKeyData |
| std::ostream & | dumpOn (std::ostream &str, const PublicKeyData &obj) |
Related Symbols | |
(Note that these are not member symbols.) | |
| std::ostream & | operator<< (std::ostream &str, const PublicSubkeyData &obj) |
| Stream output. | |
Class representing a GPG Public Keys subkeys.
Definition at line 79 of file PublicKey.h.
| zypp::PublicSubkeyData::PublicSubkeyData | ( | ) |
Default constructed: empty data.
class PublicSubkeyData
Definition at line 163 of file PublicKey.cc.
| zypp::PublicSubkeyData::~PublicSubkeyData | ( | ) |
Definition at line 175 of file PublicKey.cc.
|
private |
Definition at line 167 of file PublicKey.cc.
|
explicit |
Whether this contains valid data (not default constructed).
Definition at line 178 of file PublicKey.cc.
| std::string zypp::PublicSubkeyData::id | ( | ) | const |
Subkey ID.
Definition at line 181 of file PublicKey.cc.
| Date zypp::PublicSubkeyData::created | ( | ) | const |
Creation date.
Definition at line 184 of file PublicKey.cc.
| Date zypp::PublicSubkeyData::expires | ( | ) | const |
Expiry date, or Date() if the key never expires.
Definition at line 187 of file PublicKey.cc.
| bool zypp::PublicSubkeyData::expired | ( | ) | const |
Whether the key has expired.
Definition at line 190 of file PublicKey.cc.
| int zypp::PublicSubkeyData::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 193 of file PublicKey.cc.
| std::string zypp::PublicSubkeyData::asString | ( | ) | const |
Simple string representation.
Encodes id, created and expires
Definition at line 196 of file PublicKey.cc.
|
friend |
Definition at line 121 of file PublicKey.h.
|
friend |
Definition at line 483 of file PublicKey.cc.
|
Stream output.
Definition at line 128 of file PublicKey.h.
|
private |
Definition at line 120 of file PublicKey.h.