comparison ui/certificate.h @ 355:5f1494fab517

merged.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 10 Apr 2014 16:03:23 +0200
parents b0a274f4f9e2 a49766196a7d
children d56f952ba817
comparison
equal deleted inserted replaced
354:c9315b24b055 355:5f1494fab517
33 * the command. I: or R: 33 * the command. I: or R:
34 * 34 *
35 * @param[in] b64Line The line from the certificate list. 35 * @param[in] b64Line The line from the certificate list.
36 **/ 36 **/
37 Certificate(const QString& b64Line = QString()); 37 Certificate(const QString& b64Line = QString());
38
39 /** @brief construct a certificate from a byte array of DER data
40 *
41 * @param[in] derData a der encoded certificate.
42 **/
43 Certificate(const QByteArray& derData);
38 44
39 /** @brief check if this certificate could be parsed */ 45 /** @brief check if this certificate could be parsed */
40 bool isValid() const {return mValid;} 46 bool isValid() const {return mValid;}
41 47
42 /** @brief get a short description of the certificate 48 /** @brief get a short description of the certificate
92 QDateTime validFrom() const {return mValidFrom;} 98 QDateTime validFrom() const {return mValidFrom;}
93 99
94 /** @brief get the date the certificate expires */ 100 /** @brief get the date the certificate expires */
95 QDateTime validTo() const {return mValidTo;} 101 QDateTime validTo() const {return mValidTo;}
96 102
103 /** @brief construct certificate objects from a file
104 *
105 * Constructs a new Certificate Object from a file containing either
106 * one DER encoded certificate or one or many PEM certificates.
107 * If no certificate could be parsed from that file an empty list is
108 * returned.
109 *
110 * The size restrictions for the certificate list file also apply
111 * for this file.
112 **/
113 static QList<Certificate> fromFileName (const QString& file_name);
114
97 private: 115 private:
98 /** @brief Helper function to parse the details of a certificate **/ 116 /** @brief Helper function to parse the details of a certificate **/
99 void parseDetails(const QByteArray& cert); 117 void parseDetails(const QByteArray& cert);
100 118
101 bool mValid; 119 bool mValid;

http://wald.intevation.org/projects/trustbridge/