libzypp  17.2.2
zypp::PublicSubkeyData Class Reference

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

#include <PublicKey.h>


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 Member Functions

 PublicSubkeyData (const _gpgme_subkey *rawSubKeyData)

Private Attributes

RWCOW_pointer< Impl_pimpl


class PublicKeyData
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

Definition at line 77 of file PublicKey.h.

Constructor & Destructor Documentation

◆ PublicSubkeyData() [1/2]

zypp::PublicSubkeyData::PublicSubkeyData ( )

Default constructed: empty data.

class PublicSubkeyData

Definition at line 145 of file

◆ ~PublicSubkeyData()

zypp::PublicSubkeyData::~PublicSubkeyData ( )

Definition at line 157 of file

◆ PublicSubkeyData() [2/2]

zypp::PublicSubkeyData::PublicSubkeyData ( const _gpgme_subkey *  rawSubKeyData)

Definition at line 149 of file

Member Function Documentation

◆ operator bool()

zypp::PublicSubkeyData::operator bool ( ) const

Whether this contains valid data (not default constructed).

Definition at line 160 of file

◆ id()

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

Subkey ID.

Definition at line 163 of file

◆ created()

Date zypp::PublicSubkeyData::created ( ) const

Creation date.

Definition at line 166 of file

◆ expires()

Date zypp::PublicSubkeyData::expires ( ) const

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

Definition at line 169 of file

◆ expired()

bool zypp::PublicSubkeyData::expired ( ) const

Whether the key has expired.

Definition at line 172 of file

◆ daysToLive()

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 175 of file

◆ asString()

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 178 of file

Friends And Related Function Documentation

◆ PublicKeyData

friend class PublicKeyData

Definition at line 119 of file PublicKey.h.

◆ dumpOn

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

Definition at line 340 of file

◆ operator<<()

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

Stream output

Definition at line 126 of file PublicKey.h.

Member Data Documentation

◆ _pimpl

RWCOW_pointer<Impl> zypp::PublicSubkeyData::_pimpl

Definition at line 117 of file PublicKey.h.

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