Okular::CertificateInfo

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

enum Okular::CertificateInfo::EntityInfoKey

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

Definition at line 42 of file signatureutils.h.

enum Okular::CertificateInfo::KeyUsageExtension

Certificate key usage extensions.

Definition at line 36 of file signatureutils.h.

enum Okular::CertificateInfo::PublicKeyType

The algorithm of public key.

Definition at line 31 of file signatureutils.h.

Constructor & Destructor Documentation

CertificateInfo::~CertificateInfo ( )
virtual

Destructor.

Definition at line 15 of file signatureutils.cpp.

Member Function Documentation

QByteArray CertificateInfo::certificateData ( ) const
virtual

The DER encoded certificate.

Definition at line 86 of file signatureutils.cpp.

bool CertificateInfo::checkPassword ( const QString password) const
virtual

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

Since
21.04

Definition at line 91 of file signatureutils.cpp.

bool CertificateInfo::isNull ( ) const
virtual

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

Definition at line 21 of file signatureutils.cpp.

bool CertificateInfo::isSelfSigned ( ) const
virtual

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

Definition at line 81 of file signatureutils.cpp.

QString CertificateInfo::issuerInfo ( EntityInfoKey  key) const
virtual

Information about the issuer.

Definition at line 36 of file signatureutils.cpp.

CertificateInfo::KeyUsageExtensions CertificateInfo::keyUsageExtensions ( ) const
virtual

The uses allowed for the certificate.

Definition at line 61 of file signatureutils.cpp.

QString CertificateInfo::nickName ( ) const
virtual

The certificate internal database nickname.

Definition at line 46 of file signatureutils.cpp.

QByteArray CertificateInfo::publicKey ( ) const
virtual

The public key value.

Definition at line 66 of file signatureutils.cpp.

int CertificateInfo::publicKeyStrength ( ) const
virtual

The strength of public key in bits.

Definition at line 76 of file signatureutils.cpp.

CertificateInfo::PublicKeyType CertificateInfo::publicKeyType ( ) const
virtual

The public key type.

Definition at line 71 of file signatureutils.cpp.

QByteArray CertificateInfo::serialNumber ( ) const
virtual

The certificate serial number.

Definition at line 31 of file signatureutils.cpp.

QString CertificateInfo::subjectInfo ( EntityInfoKey  key) const
virtual

Information about the subject.

Definition at line 41 of file signatureutils.cpp.

QDateTime CertificateInfo::validityEnd ( ) const
virtual

The date-time when certificate expires.

Definition at line 56 of file signatureutils.cpp.

QDateTime CertificateInfo::validityStart ( ) const
virtual

The date-time when certificate becomes valid.

Definition at line 51 of file signatureutils.cpp.

int CertificateInfo::version ( ) const
virtual

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-2021 The KDE developers.
Generated on Sun Oct 24 2021 22:36:46 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.