12 #ifndef ZYPP_PUBLICKEY_H 13 #define ZYPP_PUBLICKEY_H 55 BadKeyException(
const std::string & msg_r,
const Pathname &keyfile = Pathname() )
86 explicit operator bool()
const;
90 std::string id()
const;
93 std::string name()
const;
96 std::string fingerprint()
const;
102 Date expires()
const;
105 bool expired()
const;
112 int daysToLive()
const;
126 std::string expiresAsString()
const;
129 std::string gpgPubkeyVersion()
const;
132 std::string gpgPubkeyRelease()
const;
160 {
return !( lhs == rhs ); }
185 void scan( std::string line_r );
226 explicit PublicKey(
const Pathname & keyFile_r );
243 {
return ! ( id().empty() || fingerprint().empty() ); }
245 std::string id()
const;
246 std::string name()
const;
247 std::string fingerprint()
const;
248 Date created()
const;
249 Date expires()
const;
250 std::string expiresAsString()
const;
251 bool expired()
const;
252 int daysToLive()
const;
253 std::string gpgPubkeyVersion()
const;
254 std::string gpgPubkeyRelease()
const;
259 Pathname path()
const;
262 const std::list<PublicKeyData> & hiddenKeys()
const;
266 bool operator==(
const std::string & sid )
const;
289 #endif // ZYPP_PUBLICKEY_H
std::string asString(const DefaultIntegral< Tp, TInitial > &obj)
std::list< PublicKeyData > _keys
Extracted keys.
virtual ~BadKeyException()
Dtor.
Class representing one GPG Public Keys data.
Exception thrown when the supplied key is not a valid gpg key.
std::string asString() const
String related utilities and Regular expression matching.
RW_pointer< Impl, rw_pointer::Scoped< Impl > > _pimpl
PublicKeyScanner implementation.
bool operator==(const SetRelation::Enum &lhs, const SetCompare &rhs)
Provide a new empty temporary file and delete it when no longer needed.
std::ostream & operator<<(std::ostream &str, const PublicKeyData &obj)
RWCOW_pointer< Impl > _pimpl
Pointer to implementation.
Store and operate on date (time_t).
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.
Scan abstract from 'gpg –with-colons' key listings.
PublicKey implementation.
Class representing one GPG Public Key (PublicKeyData + ASCII armored in a tempfile).
std::ostream & operator<<(std::ostream &str, const PublicKey &obj)
Base class for Exception.
RWCOW_pointer< Impl > _pimpl
Wrapper for const correct access via Smart pointer types.
PublicKeyData implementation.
bool operator!=(const PublicKeyData &lhs, const PublicKeyData &rhs)
Easy-to use interface to the ZYPP dependency resolver.
std::string asString() const
Simple string representation.