X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=xmltooling%2Fsecurity%2FBasicX509Credential.h;h=e33e7855d2498bf47c34d634d24c538fe3b7fb13;hb=a934a8b4cfcb4c9a6aabad577f7194eaeba9f78e;hp=b3981337ffe47f14f59a7fa64419dbf9bed79d98;hpb=2cbbcbb25564247c5920ce803ceafd2a0c1cbf96;p=shibboleth%2Fcpp-xmltooling.git diff --git a/xmltooling/security/BasicX509Credential.h b/xmltooling/security/BasicX509Credential.h index b398133..e33e785 100644 --- a/xmltooling/security/BasicX509Credential.h +++ b/xmltooling/security/BasicX509Credential.h @@ -61,6 +61,15 @@ namespace xmltooling { /** Key names (derived from credential, KeyInfo, or both). */ std::set m_keyNames; + /** Subject DN. */ + std::string m_subjectName; + + /** Issuer DN. */ + std::string m_issuerName; + + /** Serial number. */ + std::string m_serial; + /** The X.509 certificate chain. */ std::vector m_xseccerts; @@ -80,7 +89,7 @@ namespace xmltooling { * Initializes (or reinitializes) a ds:KeyInfo to represent the Credential. */ void initKeyInfo(); - + public: virtual ~BasicX509Credential(); @@ -125,6 +134,20 @@ namespace xmltooling { XSECCryptoX509CRL* getCRL() const { return m_crl; } + + const char* getSubjectName() const { + return m_subjectName.c_str(); + } + + const char* getIssuerName() const { + return m_issuerName.c_str(); + } + + const char* getSerialNumber() const { + return m_serial.c_str(); + } + + void extract(); }; };