libzypp  15.28.6
zypp::PublicSubkeyData Class Reference

Class representing a GPG Public Keys subkeys. More...

#include <PublicKey.h>

Classes

class  Impl
 PublicSubkeyData implementation. More...
 

Public Member Functions

 PublicSubkeyData ()
 Default constructed: empty data. More...
 
 ~PublicSubkeyData ()
 
 operator bool () const
 Whether this contains valid data (not default constructed). More...
 
std::string id () const
 Subkey ID. More...
 
Date created () const
 Creation date. 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 asString () const
 Simple string representation. More...
 

Private Attributes

RWCOW_pointer< Impl_pimpl
 

Friends

class PublicKeyScanner
 
std::ostream & dumpOn (std::ostream &str, const PublicKeyData &obj)
 

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &str, const PublicSubkeyData &obj)
 

Detailed Description

Class representing a GPG Public Keys subkeys.

See Also
PublicKeyData.

Definition at line 72 of file PublicKey.h.

Constructor & Destructor Documentation

zypp::PublicSubkeyData::PublicSubkeyData ( )

Default constructed: empty data.

class PublicSubkeyData

Definition at line 134 of file PublicKey.cc.

zypp::PublicSubkeyData::~PublicSubkeyData ( )

Definition at line 138 of file PublicKey.cc.

Member Function Documentation

zypp::PublicSubkeyData::operator bool ( ) const
explicit

Whether this contains valid data (not default constructed).

Definition at line 141 of file PublicKey.cc.

std::string zypp::PublicSubkeyData::id ( ) const

Subkey ID.

Definition at line 144 of file PublicKey.cc.

Date zypp::PublicSubkeyData::created ( ) const

Creation date.

Definition at line 147 of file PublicKey.cc.

Date zypp::PublicSubkeyData::expires ( ) const

Expiry date, or Date() if the key never expires.

Definition at line 150 of file PublicKey.cc.

bool zypp::PublicSubkeyData::expired ( ) const

Whether the key has expired.

Definition at line 153 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 156 of file PublicKey.cc.

std::string zypp::PublicSubkeyData::asString ( ) const

Simple string representation.

Encodes id, created and expires

640DB551 2016-04-12 [expires: 2019-04-12]

Definition at line 159 of file PublicKey.cc.

Friends And Related Function Documentation

friend class PublicKeyScanner
friend

Definition at line 114 of file PublicKey.h.

std::ostream& dumpOn ( std::ostream &  str,
const PublicKeyData obj 
)
friend

Definition at line 270 of file PublicKey.cc.

std::ostream & operator<< ( std::ostream &  str,
const PublicSubkeyData obj 
)
related

Stream output

Definition at line 120 of file PublicKey.h.

Member Data Documentation

RWCOW_pointer<Impl> zypp::PublicSubkeyData::_pimpl
private

Definition at line 112 of file PublicKey.h.


The documentation for this class was generated from the following files: