Okular

signatureutils.cpp
1 /***************************************************************************
2  * Copyright (C) 2018 by Chinmoy Ranjan Pradhan <[email protected]> *
3  * *
4  * This program is free software; you can redistribute it and/or modify *
5  * it under the terms of the GNU General Public License as published by *
6  * the Free Software Foundation; either version 2 of the License, or *
7  * (at your option) any later version. *
8  ***************************************************************************/
9 
10 #include "signatureutils.h"
11 
12 using namespace Okular;
13 
14 CertificateInfo::CertificateInfo()
15 {
16 }
17 
19 {
20 }
21 
22 Q_DECLARE_OPERATORS_FOR_FLAGS(CertificateInfo::KeyUsageExtensions)
23 
24 bool CertificateInfo::isNull() const
25 {
26  return true;
27 }
28 
30 {
31  return -1;
32 }
33 
35 {
36  return QByteArray();
37 }
38 
40 {
41  return QString();
42 }
43 
45 {
46  return QString();
47 }
48 
50 {
51  return QString();
52 }
53 
55 {
56  return QDateTime();
57 }
58 
60 {
61  return QDateTime();
62 }
63 
64 CertificateInfo::KeyUsageExtensions CertificateInfo::keyUsageExtensions() const
65 {
66  return KuNone;
67 }
68 
70 {
71  return QByteArray();
72 }
73 
75 {
76  return OtherKey;
77 }
78 
80 {
81  return -1;
82 }
83 
85 {
86  return false;
87 }
88 
90 {
91  return QByteArray();
92 }
93 
94 bool CertificateInfo::checkPassword(const QString & /*password*/) const
95 {
96  return false;
97 }
98 
99 SignatureInfo::SignatureInfo()
100 {
101 }
102 
104 {
105 }
106 
108 {
109  return SignatureStatusUnknown;
110 }
111 
113 {
114  return CertificateStatusUnknown;
115 }
116 
118 {
119  return HashAlgorithmUnknown;
120 }
121 
123 {
124  return QString();
125 }
126 
128 {
129  return QString();
130 }
131 
133 {
134  return QString();
135 }
136 
138 {
139  return QString();
140 }
141 
143 {
144  return QDateTime();
145 }
146 
148 {
149  return QByteArray();
150 }
151 
153 {
154  return QList<qint64>();
155 }
156 
158 {
159  return false;
160 }
161 
163 {
164  static CertificateInfo dummy;
165  return dummy;
166 }
167 
168 CertificateStore::CertificateStore()
169 {
170 }
171 
173 {
174 }
175 
177 {
178  *userCancelled = false;
179  return QList<CertificateInfo *>();
180 }
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:19
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 Tue May 11 2021 22:35:31 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.