12 #ifndef ZYPP_PUBLICKEY_H 13 #define ZYPP_PUBLICKEY_H 87 explicit operator bool()
const;
91 std::string id()
const;
100 bool expired()
const;
107 int daysToLive()
const;
148 explicit operator bool()
const;
152 std::string id()
const;
155 std::string name()
const;
158 std::string fingerprint()
const;
161 Date created()
const;
164 Date expires()
const;
167 bool expired()
const;
174 int daysToLive()
const;
188 std::string expiresAsString()
const;
191 std::string gpgPubkeyVersion()
const;
194 std::string gpgPubkeyRelease()
const;
197 std::string rpmName ()
const;
201 {
return Edition( gpgPubkeyVersion(), gpgPubkeyRelease() ); }
215 bool hasSubkeys()
const;
221 bool providesKey(
const std::string & id_r )
const;
233 AsciiArt asciiArt()
const;
259 {
return !( lhs == rhs ); }
309 {
return ! ( id().empty() || fingerprint().empty() ); }
311 std::string id()
const;
312 std::string name()
const;
313 std::string fingerprint()
const;
314 Date created()
const;
315 Date expires()
const;
316 std::string expiresAsString()
const;
317 bool expired()
const;
318 int daysToLive()
const;
319 std::string gpgPubkeyVersion()
const;
320 std::string gpgPubkeyRelease()
const;
322 std::string rpmName ()
const;
331 {
return keyData().
subkeys(); }
347 const std::list<PublicKeyData> & hiddenKeys()
const;
351 bool operator==(
const std::string & sid )
const;
376 #endif // ZYPP_PUBLICKEY_H std::string asString() const
Simple string representation.
std::string asString(const DefaultIntegral< Tp, TInitial > &obj)
RWCOW_pointer< Impl > _pimpl
virtual ~BadKeyException()
Dtor.
PublicSubkeyData implementation.
Edition gpgPubkeyEdition() const
!<
Class representing one GPG Public Keys data.
std::string asString() const
Simple string representation.
Exception thrown when the supplied key is not a valid gpg key.
Iterable< SubkeyIterator > subkeys() const
!<
String related utilities and Regular expression matching.
Edition represents [epoch:]version[-release]
bool hasSubkeys() const
!<
bool operator==(const SetRelation::Enum &lhs, const SetCompare &rhs)
Provide a new empty temporary file and delete it when no longer needed.
Iterable< SubkeyIterator > subkeys() const
Iterate any subkeys.
AsciiArt asciiArt() const
!<
PublicKeyData::AsciiArt AsciiArt
std::ostream & operator<<(std::ostream &str, const PublicKeyData &obj)
RWCOW_pointer< Impl > _pimpl
Pointer to implementation.
Store and operate on date (time_t).
base::DrunkenBishop AsciiArt
Random art fingerprint visualization type (base::DrunkenBishop).
const PublicSubkeyData * SubkeyIterator
bool providesKey(const std::string &id_r) const
!<
BadKeyException()
Ctor taking message.
std::ostream & dumpOn(std::ostream &str, const Capability &obj)
BadKeyException(const std::string &msg_r, const Pathname &keyfile=Pathname())
Ctor taking message.
std::ostream & operator<<(std::ostream &str, const PublicSubkeyData &obj)
PublicKey implementation.
Class representing a GPG Public Keys subkeys.
Class representing one GPG Public Key (PublicKeyData + ASCII armored in a tempfile).
std::ostream & operator<<(std::ostream &str, const PublicKey &obj)
AsciiArt asciiArt() const
Random art fingerprint visualization (base::DrunkenBishop).
Base class for Exception.
Edition gpgPubkeyEdition() const
Gpg-pubkey Edition built from version and release.
RWCOW_pointer< Impl > _pimpl
std::string asString() const
PublicKeyData implementation.
bool operator!=(const PublicKeyData &lhs, const PublicKeyData &rhs)
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.
bool hasSubkeys() const
Whether subkeys is not empty.
Random art fingerprint visualization Visualize fingerprint data on a [17x9] (SSH) or [19x11] (GPG) or...
PublicKeyData::SubkeyIterator SubkeyIterator