Go to the documentation of this file.
12 #ifndef ZYPP_PUBLICKEY_H
13 #define ZYPP_PUBLICKEY_H
87 explicit operator bool()
const;
91 std::string
id()
const;
148 explicit operator bool()
const;
152 std::string
id()
const;
155 std::string
name()
const;
224 bool providesKey(
const std::string & id_r )
const;
262 {
return !( lhs == rhs ); }
314 std::string
id()
const;
315 std::string
name()
const;
351 const std::list<PublicKeyData> &
hiddenKeys()
const;
355 bool operator==(
const std::string & sid )
const;
380 #endif // ZYPP_PUBLICKEY_H
const PublicSubkeyData * SubkeyIterator
Edition gpgPubkeyEdition() const
!<
Date created() const
Creation date.
Base class for Exception.
bool expired() const
Whether the key has expired.
const std::list< PublicKeyData > & hiddenKeys() const
Additional keys data in case the ASCII armored blob containes multiple keys.
const PublicKeyData & keyData() const
The public keys data (.
Iterable< SubkeyIterator > subkeys() const
!<
virtual ~BadKeyException()
Dtor.
Date expires() const
Expiry date, or Date() if the key never expires.
Class representing a GPG Public Keys subkeys.
std::string asString() const
Simple string representation.
Class representing one GPG Public Keys data. PublicKeyData are provided e.g. by a PublicKey or a KeyR...
std::string asString() const
Simple string representation.
Edition represents [epoch:]version[-release]
bool hasSubkeys() const
!<
int daysToLive() const
Number of days (24h) until the key expires (or since it exired).
Date created() const
Creation / last modification date (latest selfsig).
RWCOW_pointer< Impl > _pimpl
PublicSubkeyData()
Default constructed: empty data.
bool operator==(const SetRelation::Enum &lhs, const SetCompare &rhs)
This is an overloaded member function, provided for convenience. It differs from the above function o...
bool expired() const
Whether the key has expired.
Date expires() const
Expiry date, or Date() if the key never expires.
AsciiArt asciiArt() const
!<
Iterable< SubkeyIterator > subkeys() const
Iterate any subkeys.
RWCOW_pointer< Impl > _pimpl
friend std::ostream & dumpOn(std::ostream &str, const PublicKeyData &obj)
PublicKeyData implementation.
std::string gpgPubkeyRelease() const
Gpg-pubkey release as computed by rpm (hexencoded created)
std::string expiresAsString() const
PublicSubkeyData implementation.
bool operator==(const PublicKey &rhs) const
std::string expiresAsString() const
std::string rpmName() const
Random art fingerprint visualization Visualize fingerprint data on a [17x9] (SSH) or [19x11] (GPG) or...
PublicKeyData::AsciiArt AsciiArt
PublicKeyData()
Default constructed: empty data.
bool operator!=(const PublicKeyData &lhs, const PublicKeyData &rhs)
Provide a new empty temporary file and delete it when no longer needed.
std::string algoName() const
Key algorithm string like RSA 2048
std::string gpgPubkeyVersion() const
BadKeyException()
Ctor taking message.
RWCOW_pointer< Impl > _pimpl
Pointer to implementation.
bool providesKey(const std::string &id_r) const
!<
std::string name() const
Key name.
int daysToLive() const
Number of days (24h) until the key expires (or since it exired).
Easy-to use interface to the ZYPP dependency resolver.
bool providesKey(const std::string &id_r) const
Whether id_r is the id of the primary key or of a subkey.
PublicKey implementation.
std::ostream & operator<<(std::ostream &str, const PublicKey &obj)
BadKeyException(const std::string &msg_r, const Pathname &keyfile=Pathname())
Ctor taking message.
std::string fingerprint() const
Class representing one GPG Public Key (PublicKeyData + ASCII armored in a tempfile).
std::string gpgPubkeyRelease() const
std::string fingerprint() const
Key fingerprint.
Store and operate on date (time_t).
Pathname path() const
File containig the ASCII armored key.
Exception thrown when the supplied key is not a valid gpg key.
static PublicKeyData fromGpgmeKey(_gpgme_key *data)
std::ostream & operator<<(std::ostream &str, const PublicSubkeyData &obj)
bool hasSubkeys() const
Whether subkeys is not empty.
std::string id() const
Subkey ID.
AsciiArt asciiArt() const
Random art fingerprint visualization (base::DrunkenBishop).
std::ostream & operator<<(std::ostream &str, const PublicKeyData &obj)
std::string asString() const
String related utilities and Regular expression matching.
std::string rpmName() const
Gpg-pubkey name as computed by rpm.
std::string gpgPubkeyVersion() const
Gpg-pubkey version as computed by rpm (trailing 8 byte id)
std::ostream & dumpOn(std::ostream &str, const Capability &obj)
std::string algoName() const
PublicKeyData::SubkeyIterator SubkeyIterator
base::DrunkenBishop AsciiArt
Random art fingerprint visualization type (base::DrunkenBishop).
std::string id() const
Key ID.
friend std::ostream & dumpOn(std::ostream &str, const PublicKeyData &obj)
Edition gpgPubkeyEdition() const
Gpg-pubkey Edition built from version and release.