Changeset View
Changeset View
Standalone View
Standalone View
core/signatureutils.cpp
- This file was added.
1 | /*************************************************************************** | ||||
---|---|---|---|---|---|
2 | * Copyright (C) 2018 by Chinmoy Ranjan Pradhan <chinmoyrp65@gmail.com> * | ||||
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 | | ||||
18 | CertificateInfo::~CertificateInfo() | ||||
19 | { | ||||
20 | } | ||||
21 | | ||||
22 | Q_DECLARE_OPERATORS_FOR_FLAGS( CertificateInfo::KeyUsageExtensions ) | ||||
23 | | ||||
24 | bool CertificateInfo::isNull() const | ||||
25 | { | ||||
26 | return true; | ||||
27 | } | ||||
28 | | ||||
29 | int CertificateInfo::version() const | ||||
30 | { | ||||
31 | return -1; | ||||
32 | } | ||||
33 | | ||||
34 | QByteArray CertificateInfo::serialNumber() const | ||||
35 | { | ||||
36 | return QByteArray(); | ||||
37 | } | ||||
38 | | ||||
39 | QString CertificateInfo::issuerInfo(EntityInfoKey) const | ||||
40 | { | ||||
41 | return QString(); | ||||
42 | } | ||||
43 | | ||||
44 | QString CertificateInfo::subjectInfo(EntityInfoKey) const | ||||
45 | { | ||||
46 | return QString(); | ||||
47 | } | ||||
48 | | ||||
49 | QDateTime CertificateInfo::validityStart() const | ||||
50 | { | ||||
51 | return QDateTime(); | ||||
52 | } | ||||
53 | | ||||
54 | QDateTime CertificateInfo::validityEnd() const | ||||
55 | { | ||||
56 | return QDateTime(); | ||||
57 | } | ||||
58 | | ||||
59 | CertificateInfo::KeyUsageExtensions CertificateInfo::keyUsageExtensions() const | ||||
60 | { | ||||
61 | return KuNone; | ||||
62 | } | ||||
63 | | ||||
64 | QByteArray CertificateInfo::publicKey() const | ||||
65 | { | ||||
66 | return QByteArray(); | ||||
67 | } | ||||
68 | | ||||
69 | CertificateInfo::PublicKeyType CertificateInfo::publicKeyType() const | ||||
70 | { | ||||
71 | return OtherKey; | ||||
72 | } | ||||
73 | | ||||
74 | int CertificateInfo::publicKeyStrength() const | ||||
75 | { | ||||
76 | return -1; | ||||
77 | } | ||||
78 | | ||||
79 | bool CertificateInfo::isSelfSigned() const | ||||
80 | { | ||||
81 | return false; | ||||
82 | } | ||||
83 | | ||||
84 | QByteArray CertificateInfo::certificateData() const | ||||
85 | { | ||||
86 | return QByteArray(); | ||||
87 | } | ||||
88 | | ||||
89 | | ||||
90 | SignatureInfo::SignatureInfo() | ||||
91 | { | ||||
92 | } | ||||
93 | | ||||
94 | SignatureInfo::~SignatureInfo() | ||||
95 | { | ||||
96 | } | ||||
97 | | ||||
98 | SignatureInfo::SignatureStatus SignatureInfo::signatureStatus() const | ||||
99 | { | ||||
100 | return SignatureStatusUnknown; | ||||
101 | } | ||||
102 | | ||||
103 | SignatureInfo::CertificateStatus SignatureInfo::certificateStatus() const | ||||
104 | { | ||||
105 | return CertificateStatusUnknown; | ||||
106 | | ||||
107 | } | ||||
108 | | ||||
109 | SignatureInfo::HashAlgorithm SignatureInfo::hashAlgorithm() const | ||||
110 | { | ||||
111 | return HashAlgorithmUnknown; | ||||
112 | } | ||||
113 | | ||||
114 | QString SignatureInfo::signerName() const | ||||
115 | { | ||||
116 | return QString(); | ||||
117 | } | ||||
118 | | ||||
119 | QString SignatureInfo::signerSubjectDN() const | ||||
120 | { | ||||
121 | return QString(); | ||||
122 | } | ||||
123 | | ||||
124 | QString SignatureInfo::location() const | ||||
125 | { | ||||
126 | return QString(); | ||||
127 | } | ||||
128 | | ||||
129 | QString SignatureInfo::reason() const | ||||
130 | { | ||||
131 | return QString(); | ||||
132 | } | ||||
133 | | ||||
134 | QDateTime SignatureInfo::signingTime() const | ||||
135 | { | ||||
136 | return QDateTime(); | ||||
137 | } | ||||
138 | | ||||
139 | QByteArray SignatureInfo::signature() const | ||||
140 | { | ||||
141 | return QByteArray(); | ||||
142 | } | ||||
143 | | ||||
144 | QList<qint64> SignatureInfo::signedRangeBounds() const | ||||
145 | { | ||||
146 | return QList<qint64>(); | ||||
147 | } | ||||
148 | | ||||
149 | bool SignatureInfo::signsTotalDocument() const | ||||
150 | { | ||||
151 | return false; | ||||
152 | } | ||||
153 | | ||||
154 | CertificateInfo *SignatureInfo::certificateInfo() const | ||||
155 | { | ||||
156 | return nullptr; | ||||
157 | } |