Search for usage in LXR

Okular::CertificateInfo Class Reference

#include <signatureutils.h>

Public Types

enum  EntityInfoKey { CommonName, DistinguishedName, EmailAddress, Organization }
enum  KeyUsageExtension {
  KuDigitalSignature = 0x80, KuNonRepudiation = 0x40, KuKeyEncipherment = 0x20, KuDataEncipherment = 0x10,
  KuKeyAgreement = 0x08, KuKeyCertSign = 0x04, KuClrSign = 0x02, KuEncipherOnly = 0x01,
  KuNone = 0x00
typedef QFlags< KeyUsageExtensionKeyUsageExtensions
enum  PublicKeyType { RsaKey, DsaKey, EcKey, OtherKey }

Public Member Functions

virtual ~CertificateInfo ()
virtual QByteArray certificateData () const
virtual bool checkPassword (const QString &password) const
virtual bool isNull () const
virtual bool isSelfSigned () const
virtual QString issuerInfo (EntityInfoKey key) const
virtual KeyUsageExtensions keyUsageExtensions () const
virtual QString nickName () const
virtual QByteArray publicKey () const
virtual int publicKeyStrength () const
virtual PublicKeyType publicKeyType () const
virtual QByteArray serialNumber () const
virtual QString subjectInfo (EntityInfoKey key) const
virtual QDateTime validityEnd () const
virtual QDateTime validityStart () const
virtual int version () const

Detailed Description

A helper class to store information about x509 certificate.

Definition at line 25 of file signatureutils.h.

Member Enumeration Documentation

◆ EntityInfoKey

enum Okular::CertificateInfo::EntityInfoKey

Predefined keys for elements in an entity's distinguished name.

Definition at line 42 of file signatureutils.h.

◆ KeyUsageExtension

enum Okular::CertificateInfo::KeyUsageExtension

Certificate key usage extensions.

Definition at line 36 of file signatureutils.h.

◆ PublicKeyType

enum Okular::CertificateInfo::PublicKeyType

The algorithm of public key.

Definition at line 31 of file signatureutils.h.

Constructor & Destructor Documentation

◆ ~CertificateInfo()

CertificateInfo::~CertificateInfo ( )


Definition at line 15 of file signatureutils.cpp.

Member Function Documentation

◆ certificateData()

QByteArray CertificateInfo::certificateData ( ) const

The DER encoded certificate.

Definition at line 86 of file signatureutils.cpp.

◆ checkPassword()

bool CertificateInfo::checkPassword ( const QString password) const

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


Definition at line 91 of file signatureutils.cpp.

◆ isNull()

bool CertificateInfo::isNull ( ) const

Returns true if certificate has no contents; otherwise returns false.

Definition at line 21 of file signatureutils.cpp.

◆ isSelfSigned()

bool CertificateInfo::isSelfSigned ( ) const

Returns true if certificate is self-signed otherwise returns false.

Definition at line 81 of file signatureutils.cpp.

◆ issuerInfo()

QString CertificateInfo::issuerInfo ( EntityInfoKey  key) const

Information about the issuer.

Definition at line 36 of file signatureutils.cpp.

◆ keyUsageExtensions()

CertificateInfo::KeyUsageExtensions CertificateInfo::keyUsageExtensions ( ) const

The uses allowed for the certificate.

Definition at line 61 of file signatureutils.cpp.

◆ nickName()

QString CertificateInfo::nickName ( ) const

The certificate internal database nickname.

Definition at line 46 of file signatureutils.cpp.

◆ publicKey()

QByteArray CertificateInfo::publicKey ( ) const

The public key value.

Definition at line 66 of file signatureutils.cpp.

◆ publicKeyStrength()

int CertificateInfo::publicKeyStrength ( ) const

The strength of public key in bits.

Definition at line 76 of file signatureutils.cpp.

◆ publicKeyType()

CertificateInfo::PublicKeyType CertificateInfo::publicKeyType ( ) const

The public key type.

Definition at line 71 of file signatureutils.cpp.

◆ serialNumber()

QByteArray CertificateInfo::serialNumber ( ) const

The certificate serial number.

Definition at line 31 of file signatureutils.cpp.

◆ subjectInfo()

QString CertificateInfo::subjectInfo ( EntityInfoKey  key) const

Information about the subject.

Definition at line 41 of file signatureutils.cpp.

◆ validityEnd()

QDateTime CertificateInfo::validityEnd ( ) const

The date-time when certificate expires.

Definition at line 56 of file signatureutils.cpp.

◆ validityStart()

QDateTime CertificateInfo::validityStart ( ) const

The date-time when certificate becomes valid.

Definition at line 51 of file signatureutils.cpp.

◆ version()

int CertificateInfo::version ( ) const

The certificate version string.

Definition at line 26 of file signatureutils.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 19 2022 04:10:35 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.