Poppler Qt5  0.74.0
Public Types | Public Member Functions | List of all members
Poppler::SignatureValidationInfo Class Reference

Public Types

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

Public Member Functions

CertificateInfo certificateInfo () const
 
CertificateStatus certificateStatus () const
 
HashAlgorithm hashAlgorithm () const
 
QString location () const
 
SignatureValidationInfooperator= (const SignatureValidationInfo &other)
 
QString reason () const
 
QByteArray signature () const
 
SignatureStatus signatureStatus () const
 
 SignatureValidationInfo (const SignatureValidationInfo &other)
 
QList< qint64 > signedRangeBounds () const
 
QString signerName () const
 
QString signerSubjectDN () const
 
time_t signingTime () const
 
bool signsTotalDocument () const
 

Member Enumeration Documentation

◆ CertificateStatus

The verification result of the certificate.

Enumerator
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.

◆ HashAlgorithm

The hash algorithm of the signature.

Since
0.58

◆ SignatureStatus

The verification result of the signature.

Enumerator
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.

Member Function Documentation

◆ certificateInfo()

CertificateInfo Poppler::SignatureValidationInfo::certificateInfo ( ) const

The signer certificate info.

Since
0.73

◆ hashAlgorithm()

HashAlgorithm Poppler::SignatureValidationInfo::hashAlgorithm ( ) const

The hash algorithm used for the signature.

Since
0.58

◆ location()

QString Poppler::SignatureValidationInfo::location ( ) const

Get signing location.

Since
0.68

◆ reason()

QString Poppler::SignatureValidationInfo::reason ( ) const

Get signing reason.

Since
0.68

◆ signature()

QByteArray Poppler::SignatureValidationInfo::signature ( ) const

Get the signature binary data.

Since
0.58

◆ signedRangeBounds()

QList<qint64> Poppler::SignatureValidationInfo::signedRangeBounds ( ) const

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

Since
0.58

◆ signerSubjectDN()

QString Poppler::SignatureValidationInfo::signerSubjectDN ( ) const

The signer subject distinguished name associated with the signature.

Since
0.58

◆ signsTotalDocument()

bool Poppler::SignatureValidationInfo::signsTotalDocument ( ) const

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

Since
0.58

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