Okular::SignatureInfo

Search for usage in LXR

Okular::SignatureInfo Class Reference

#include <signatureutils.h>

Public Types

enum  CertificateStatus {
  CertificateStatusUnknown, CertificateTrusted, CertificateUntrustedIssuer, CertificateUnknownIssuer,
  CertificateRevoked, CertificateExpired, CertificateGenericError, CertificateNotVerified
}
 
enum  HashAlgorithm {
  HashAlgorithmUnknown, HashAlgorithmMd2, HashAlgorithmMd5, HashAlgorithmSha1,
  HashAlgorithmSha256, HashAlgorithmSha384, HashAlgorithmSha512, HashAlgorithmSha224
}
 
enum  SignatureStatus {
  SignatureStatusUnknown, SignatureValid, SignatureInvalid, SignatureDigestMismatch,
  SignatureDecodingError, SignatureGenericError, SignatureNotFound, SignatureNotVerified
}
 

Public Member Functions

virtual ~SignatureInfo ()
 
virtual const CertificateInfocertificateInfo () const
 
virtual CertificateStatus certificateStatus () const
 
virtual HashAlgorithm hashAlgorithm () const
 
virtual QString location () const
 
virtual QString reason () const
 
virtual QByteArray signature () const
 
virtual SignatureStatus signatureStatus () const
 
virtual QList< qint64 > signedRangeBounds () const
 
virtual QString signerName () const
 
virtual QString signerSubjectDN () const
 
virtual QDateTime signingTime () const
 
virtual bool signsTotalDocument () const
 

Detailed Description

A helper class to store information about digital signature.

Definition at line 142 of file signatureutils.h.

Member Enumeration Documentation

The verification result of the certificate.

Enumerator
CertificateStatusUnknown 

The certificate status is unknown for some reason.

CertificateTrusted 

The certificate is considered trusted.

CertificateUntrustedIssuer 

The issuer of this certificate has been marked as untrusted by the user.

CertificateUnknownIssuer 

The certificate trust chain has not finished in a trusted root certificate.

CertificateRevoked 

The certificate was revoked by the issuing certificate authority.

CertificateExpired 

The signing time is outside the validity bounds of this certificate.

CertificateGenericError 

The certificate could not be verified.

CertificateNotVerified 

The certificate is not yet verified.

Definition at line 162 of file signatureutils.h.

The hash algorithm of the signature.

Definition at line 176 of file signatureutils.h.

The verification result of the signature.

Enumerator
SignatureStatusUnknown 

The signature status is unknown for some reason.

SignatureValid 

The signature is cryptographically valid.

SignatureInvalid 

The signature is cryptographically invalid.

SignatureDigestMismatch 

The document content was changed after the signature was applied.

SignatureDecodingError 

The signature CMS/PKCS7 structure is malformed.

SignatureGenericError 

The signature could not be verified.

SignatureNotFound 

The requested signature is not present in the document.

SignatureNotVerified 

The signature is not yet verified.

Definition at line 148 of file signatureutils.h.

Constructor & Destructor Documentation

SignatureInfo::~SignatureInfo ( )
virtual

Destructor.

Definition at line 100 of file signatureutils.cpp.

Member Function Documentation

const CertificateInfo & SignatureInfo::certificateInfo ( ) const
virtual

Get certificate details.

Definition at line 159 of file signatureutils.cpp.

SignatureInfo::CertificateStatus SignatureInfo::certificateStatus ( ) const
virtual

The certificate status of the signature.

Definition at line 109 of file signatureutils.cpp.

SignatureInfo::HashAlgorithm SignatureInfo::hashAlgorithm ( ) const
virtual

The hash algorithm used for the signature.

Definition at line 114 of file signatureutils.cpp.

QString SignatureInfo::location ( ) const
virtual

Get signing location.

Definition at line 129 of file signatureutils.cpp.

QString SignatureInfo::reason ( ) const
virtual

Get signing reason.

Definition at line 134 of file signatureutils.cpp.

QByteArray SignatureInfo::signature ( ) const
virtual

Get the signature binary data.

Definition at line 144 of file signatureutils.cpp.

SignatureInfo::SignatureStatus SignatureInfo::signatureStatus ( ) const
virtual

The signature status of the signature.

Definition at line 104 of file signatureutils.cpp.

QList< qint64 > SignatureInfo::signedRangeBounds ( ) const
virtual

Get the bounds of the ranges of the document which are signed.

Definition at line 149 of file signatureutils.cpp.

QString SignatureInfo::signerName ( ) const
virtual

The signer subject common name associated with the signature.

Definition at line 119 of file signatureutils.cpp.

QString SignatureInfo::signerSubjectDN ( ) const
virtual

The signer subject distinguished name associated with the signature.

Definition at line 124 of file signatureutils.cpp.

QDateTime SignatureInfo::signingTime ( ) const
virtual

The signing time associated with the signature.

Definition at line 139 of file signatureutils.cpp.

bool SignatureInfo::signsTotalDocument ( ) const
virtual

Checks whether the signature authenticates the total document except for the signature itself.

Definition at line 154 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 Sat Oct 23 2021 22:36:42 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.