comparison ui/certificate.h @ 341:36c68dfb821d

Added accessors for certificate details.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 10 Apr 2014 09:56:51 +0200
parents 64e38886f903
children a49766196a7d b0a274f4f9e2
comparison
equal deleted inserted replaced
340:9001eaa55549 341:36c68dfb821d
68 * 68 *
69 * This is shorthand for baseLine.startsWith("I:"); 69 * This is shorthand for baseLine.startsWith("I:");
70 **/ 70 **/
71 bool isInstallCert() const {return mBaseLine.startsWith("I:");} 71 bool isInstallCert() const {return mBaseLine.startsWith("I:");}
72 72
73 /** @brief get the subject OU from the certificate */
74 QString subjectOU() const {return mSubjectOU;}
75
76 /** @brief get the subject CN from the certificate */
77 QString subjectCN() const {return mSubjectCN;}
78
79 /** @brief get the subject O from the certificate */
80 QString subjectO() const {return mSubjectO;}
81
82 /** @brief get the subject SN from the certificate */
83 QString subjectSN() const {return mSubjectSN;}
84
85 /** @brief get the date the certificate was issued */
86 QDateTime validFrom() const {return mValidFrom;}
87
88 /** @brief get the date the certificate expires */
89 QDateTime validTo() const {return mValidTo;}
90
73 private: 91 private:
74 /** @brief Helper function to parse the details of a certificate **/ 92 /** @brief Helper function to parse the details of a certificate **/
75 void parseDetails(const QByteArray& cert); 93 void parseDetails(const QByteArray& cert);
76 94
77 bool mValid; 95 bool mValid;

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