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 28 of file signatureutils.h.

Member Enumeration Documentation

enum Okular::CertificateInfo::EntityInfoKey

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

Definition at line 45 of file signatureutils.h.

enum Okular::CertificateInfo::KeyUsageExtension

Certificate key usage extensions.

Definition at line 39 of file signatureutils.h.

enum Okular::CertificateInfo::PublicKeyType

The algorithm of public key.

Definition at line 34 of file signatureutils.h.

Constructor & Destructor Documentation

CertificateInfo::~CertificateInfo ( )


Definition at line 18 of file signatureutils.cpp.

Member Function Documentation

QByteArray CertificateInfo::certificateData ( ) const

The DER encoded certificate.

Definition at line 89 of file signatureutils.cpp.

bool CertificateInfo::checkPassword ( const QString password) const

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


Definition at line 94 of file signatureutils.cpp.

bool CertificateInfo::isNull ( ) const

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

Definition at line 24 of file signatureutils.cpp.

bool CertificateInfo::isSelfSigned ( ) const

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

Definition at line 84 of file signatureutils.cpp.

QString CertificateInfo::issuerInfo ( EntityInfoKey  key) const

Information about the issuer.

Definition at line 39 of file signatureutils.cpp.

CertificateInfo::KeyUsageExtensions CertificateInfo::keyUsageExtensions ( ) const

The uses allowed for the certificate.

Definition at line 64 of file signatureutils.cpp.

QString CertificateInfo::nickName ( ) const

The certificate internal database nickname.

Definition at line 49 of file signatureutils.cpp.

QByteArray CertificateInfo::publicKey ( ) const

The public key value.

Definition at line 69 of file signatureutils.cpp.

int CertificateInfo::publicKeyStrength ( ) const

The strength of public key in bits.

Definition at line 79 of file signatureutils.cpp.

CertificateInfo::PublicKeyType CertificateInfo::publicKeyType ( ) const

The public key type.

Definition at line 74 of file signatureutils.cpp.

QByteArray CertificateInfo::serialNumber ( ) const

The certificate serial number.

Definition at line 34 of file signatureutils.cpp.

QString CertificateInfo::subjectInfo ( EntityInfoKey  key) const

Information about the subject.

Definition at line 44 of file signatureutils.cpp.

QDateTime CertificateInfo::validityEnd ( ) const

The date-time when certificate expires.

Definition at line 59 of file signatureutils.cpp.

QDateTime CertificateInfo::validityStart ( ) const

The date-time when certificate becomes valid.

Definition at line 54 of file signatureutils.cpp.

int CertificateInfo::version ( ) const

The certificate version string.

Definition at line 29 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-2021 The KDE developers.
Generated on Wed May 12 2021 22:35:29 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.