Okular

signatureutils.cpp
1 /*
2  SPDX-FileCopyrightText: 2018 Chinmoy Ranjan Pradhan <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #include "signatureutils.h"
8 
9 using namespace Okular;
10 
11 CertificateInfo::CertificateInfo()
12 {
13 }
14 
16 {
17 }
18 
19 Q_DECLARE_OPERATORS_FOR_FLAGS(CertificateInfo::KeyUsageExtensions)
20 
21 bool CertificateInfo::isNull() const
22 {
23  return true;
24 }
25 
27 {
28  return -1;
29 }
30 
32 {
33  return QByteArray();
34 }
35 
37 {
38  return QString();
39 }
40 
42 {
43  return QString();
44 }
45 
47 {
48  return QString();
49 }
50 
52 {
53  return QDateTime();
54 }
55 
57 {
58  return QDateTime();
59 }
60 
61 CertificateInfo::KeyUsageExtensions CertificateInfo::keyUsageExtensions() const
62 {
63  return KuNone;
64 }
65 
67 {
68  return QByteArray();
69 }
70 
72 {
73  return OtherKey;
74 }
75 
77 {
78  return -1;
79 }
80 
82 {
83  return false;
84 }
85 
87 {
88  return QByteArray();
89 }
90 
91 bool CertificateInfo::checkPassword(const QString & /*password*/) const
92 {
93  return false;
94 }
95 
96 SignatureInfo::SignatureInfo()
97 {
98 }
99 
101 {
102 }
103 
105 {
106  return SignatureStatusUnknown;
107 }
108 
110 {
111  return CertificateStatusUnknown;
112 }
113 
115 {
116  return HashAlgorithmUnknown;
117 }
118 
120 {
121  return QString();
122 }
123 
125 {
126  return QString();
127 }
128 
130 {
131  return QString();
132 }
133 
135 {
136  return QString();
137 }
138 
140 {
141  return QDateTime();
142 }
143 
145 {
146  return QByteArray();
147 }
148 
150 {
151  return QList<qint64>();
152 }
153 
155 {
156  return false;
157 }
158 
160 {
161  static CertificateInfo dummy;
162  return dummy;
163 }
164 
165 CertificateStore::CertificateStore()
166 {
167 }
168 
170 {
171 }
172 
174 {
175  *userCancelled = false;
176  return QList<CertificateInfo *>();
177 }
virtual ~CertificateStore()
Destructor.
virtual QString nickName() const
The certificate internal database nickname.
virtual bool isSelfSigned() const
Returns true if certificate is self-signed otherwise returns false.
virtual QDateTime validityEnd() const
The date-time when certificate expires.
PublicKeyType
The algorithm of public key.
virtual QDateTime signingTime() const
The signing time associated with the signature.
virtual QString location() const
Get signing location.
virtual bool signsTotalDocument() const
Checks whether the signature authenticates the total document except for the signature itself...
virtual QString signerSubjectDN() const
The signer subject distinguished name associated with the signature.
virtual CertificateStatus certificateStatus() const
The certificate status of the signature.
virtual QByteArray publicKey() const
The public key value.
virtual QList< CertificateInfo * > signingCertificates(bool *userCancelled) const
Returns list of valid, usable signing certificates.
virtual QString signerName() const
The signer subject common name associated with the signature.
virtual QString reason() const
Get signing reason.
global.h
Definition: action.h:16
virtual QString subjectInfo(EntityInfoKey key) const
Information about the subject.
virtual bool checkPassword(const QString &password) const
Checks if the given password is the correct one for this certificate.
virtual QList< qint64 > signedRangeBounds() const
Get the bounds of the ranges of the document which are signed.
virtual int publicKeyStrength() const
The strength of public key in bits.
virtual SignatureStatus signatureStatus() const
The signature status of the signature.
virtual QString issuerInfo(EntityInfoKey key) const
Information about the issuer.
SignatureStatus
The verification result of the signature.
virtual PublicKeyType publicKeyType() const
The public key type.
virtual QByteArray signature() const
Get the signature binary data.
HashAlgorithm
The hash algorithm of the signature.
virtual ~CertificateInfo()
Destructor.
virtual bool isNull() const
Returns true if certificate has no contents; otherwise returns false.
virtual const CertificateInfo & certificateInfo() const
Get certificate details.
virtual int version() const
The certificate version string.
CertificateStatus
The verification result of the certificate.
virtual QDateTime validityStart() const
The date-time when certificate becomes valid.
EntityInfoKey
Predefined keys for elements in an entity&#39;s distinguished name.
A helper class to store information about x509 certificate.
virtual QByteArray serialNumber() const
The certificate serial number.
virtual QByteArray certificateData() const
The DER encoded certificate.
virtual KeyUsageExtensions keyUsageExtensions() const
The uses allowed for the certificate.
virtual ~SignatureInfo()
Destructor.
virtual HashAlgorithm hashAlgorithm() const
The hash algorithm used for the signature.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Nov 26 2021 22:38:09 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.