changeset 341:36c68dfb821d

Added accessors for certificate details.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 10 Apr 2014 09:56:51 +0200
parents 9001eaa55549
children fba80767fd7a
files ui/certificate.h
diffstat 1 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);

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