# HG changeset patch # User Raimund Renkert # Date 1397116611 -7200 # Node ID 36c68dfb821d19cd77208a77dd930fc98f1d72b4 # Parent 9001eaa55549756137f68b2912af9ff269c6d16c Added accessors for certificate details. diff -r 9001eaa55549 -r 36c68dfb821d ui/certificate.h --- a/ui/certificate.h Wed Apr 09 17:39:24 2014 +0000 +++ b/ui/certificate.h Thu Apr 10 09:56:51 2014 +0200 @@ -70,6 +70,24 @@ **/ bool isInstallCert() const {return mBaseLine.startsWith("I:");} + /** @brief get the subject OU from the certificate */ + QString subjectOU() const {return mSubjectOU;} + + /** @brief get the subject CN from the certificate */ + QString subjectCN() const {return mSubjectCN;} + + /** @brief get the subject O from the certificate */ + QString subjectO() const {return mSubjectO;} + + /** @brief get the subject SN from the certificate */ + QString subjectSN() const {return mSubjectSN;} + + /** @brief get the date the certificate was issued */ + QDateTime validFrom() const {return mValidFrom;} + + /** @brief get the date the certificate expires */ + QDateTime validTo() const {return mValidTo;} + private: /** @brief Helper function to parse the details of a certificate **/ void parseDetails(const QByteArray& cert);