The Micro C++ Library
micxx::X509Certificate Class Reference

The X509Certificate class is a memory representation of a X.509 certificate. More...

#include <micxx/Crypt.hxx>

Inherits micxx::traits::ToString.

List of all members.

Public Member Functions

 X509Certificate ()
 X509Certificate (const X509Certificate &right)
virtual ~X509Certificate ()
virtual void clear ()
virtual const std::string & getIssuer () const
 Return the issuer of this X509 certificate.
virtual const std::string & getSubject () const
 Return the subject of this X509 certificate.
virtual const std::string & getURL () const
virtual void load (const std::string &url)
 Try to load a X.509 certificate from URL url.
virtual X509Certificateoperator= (const X509Certificate &right)
virtual bool operator! () const
 Returns true, if this ProvateKey object is invalid. Otherwise false is returned.
virtual std::string toString () const
 Return a string representation.

Friends

class X509CertificateList
class PKCS12Store

Detailed Description

The X509Certificate class is a memory representation of a X.509 certificate.

Wikipedia: "In cryptography, X.509 is an ITU-T standard for a public key infrastructure (PKI) and Privilege Management Infrastructure (PMI). X.509 specifies, amongst other things, standard formats for public key certificates, certificate revocation lists, attribute certificates, and a certification path validation algorithm."

Author:
Norbert Klose
Date:
October, 2011

Constructor & Destructor Documentation

micxx::X509Certificate::X509Certificate ( )
micxx::X509Certificate::X509Certificate ( const X509Certificate right)
virtual micxx::X509Certificate::~X509Certificate ( ) [virtual]

Member Function Documentation

virtual void micxx::X509Certificate::clear ( ) [virtual]
virtual const std::string& micxx::X509Certificate::getIssuer ( ) const [virtual]

Return the issuer of this X509 certificate.

virtual const std::string& micxx::X509Certificate::getSubject ( ) const [virtual]

Return the subject of this X509 certificate.

virtual const std::string& micxx::X509Certificate::getURL ( ) const [inline, virtual]
    {
         return url;
    }
virtual void micxx::X509Certificate::load ( const std::string &  url) [virtual]

Try to load a X.509 certificate from URL url.

Note:
PEM format is simply base64 encoded data surrounded by header lines.
virtual bool micxx::X509Certificate::operator! ( ) const [virtual]

Returns true, if this ProvateKey object is invalid. Otherwise false is returned.

virtual X509Certificate& micxx::X509Certificate::operator= ( const X509Certificate right) [virtual]
virtual std::string micxx::X509Certificate::toString ( ) const [virtual]

Return a string representation.

Reimplemented from micxx::traits::ToString.


Friends And Related Function Documentation

friend class PKCS12Store [friend]
friend class X509CertificateList [friend]

The documentation for this class was generated from the following file: