Poppler Qt5 24.12.0
Public Types | Public Member Functions | List of all members
Poppler::CertificateInfo Class Reference

Public Types

enum  EntityInfoKey { CommonName , DistinguishedName , EmailAddress , Organization }
 
enum class  KeyLocation { Unknown , Other , Computer , HardwareToken }
 
enum  KeyUsageExtension {
  KuDigitalSignature = 0x80 , KuNonRepudiation = 0x40 , KuKeyEncipherment = 0x20 , KuDataEncipherment = 0x10 ,
  KuKeyAgreement = 0x08 , KuKeyCertSign = 0x04 , KuClrSign = 0x02 , KuEncipherOnly = 0x01 ,
  KuNone = 0x00
}
 
enum  PublicKeyType { RsaKey , DsaKey , EcKey , OtherKey }
 

Public Member Functions

QByteArray certificateData () const
 
 CertificateInfo (CertificateInfoPrivate *priv)
 
 CertificateInfo (const CertificateInfo &other)
 
bool checkPassword (const QString &password) const
 
bool isNull () const
 
bool isSelfSigned () const
 
QString issuerInfo (EntityInfoKey key) const
 
KeyLocation keyLocation () const
 
KeyUsageExtensions keyUsageExtensions () const
 
QString nickName () const
 
CertificateInfooperator= (const CertificateInfo &other)
 
QByteArray publicKey () const
 
int publicKeyStrength () const
 
PublicKeyType publicKeyType () const
 
QByteArray serialNumber () const
 
QString subjectInfo (EntityInfoKey key) const
 
QDateTime validityEnd () const
 
QDateTime validityStart () const
 
int version () const
 

Member Enumeration Documentation

◆ KeyLocation

A signing key can be located in different places sometimes.

For the user, it might be easier to pick the key located on a card if it has some visual indicator that it is somehow removable.

Note
a keylocation for a certificate without a private key (cannot be used for signing) will likely be "Unknown"
Since
23.09
Enumerator
Other 

We don't know the location.

Computer 

We know the location, but it is somehow not covered by this enum.

HardwareToken 

The key is on this computer.

The key is on a dedicated hardware token, either a smartcard or a dedicated usb token (e.g. gnuk, nitrokey or yubikey)

Member Function Documentation

◆ checkPassword()

bool Poppler::CertificateInfo::checkPassword ( const QString &  password) const

Checks if the given password is the correct one for this certificate.

Since
21.01

◆ keyLocation()

KeyLocation Poppler::CertificateInfo::keyLocation ( ) const

The storage location for this key.

Since
23.09

◆ nickName()

QString Poppler::CertificateInfo::nickName ( ) const

The certificate internal database nickname.

Since
21.01

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