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

The PKCS12Store class is a memory representation of a PKCS#12 container. More...

#include <micxx/Crypt.hxx>

Inherits micxx::traits::ToString.

List of all members.

Public Member Functions

 PKCS12Store ()
virtual ~PKCS12Store ()
virtual X509CertificateListgetCACertificates ()
virtual const X509CertificateListgetCACertificates () const
virtual X509CertificategetCertificate ()
virtual const X509CertificategetCertificate () const
virtual PrivateKeygetPrivateKey ()
virtual const PrivateKeygetPrivateKey () const
virtual const std::string & getURL () const
virtual void load (const std::string &url, const std::string *passphrase=0)
 Try to load a PKCS#12 container from URL url using the optional passphrase.
virtual std::string toString () const
 Return a string representation.

Detailed Description

The PKCS12Store class is a memory representation of a PKCS#12 container.

Wikipedia: "PKCS#12 defines a file format commonly used to store X.509 private keys with accompanying public key certificates, protected with a password-based symmetric key.

See also:
PKCS #12: Personal Information Exchange Syntax Standard
Author:
Norbert Klose
Date:
October, 2011

Constructor & Destructor Documentation

micxx::PKCS12Store::PKCS12Store ( ) [inline]
{}
virtual micxx::PKCS12Store::~PKCS12Store ( ) [inline, virtual]
{}

Member Function Documentation

virtual X509CertificateList& micxx::PKCS12Store::getCACertificates ( ) [inline, virtual]
    {
        return caCertificates;
    }
virtual const X509CertificateList& micxx::PKCS12Store::getCACertificates ( ) const [inline, virtual]
    {
        return caCertificates;
    }
virtual const X509Certificate& micxx::PKCS12Store::getCertificate ( ) const [inline, virtual]
    {
        return certificate;
    }
virtual X509Certificate& micxx::PKCS12Store::getCertificate ( ) [inline, virtual]
    {
        return certificate;
    }
virtual PrivateKey& micxx::PKCS12Store::getPrivateKey ( ) [inline, virtual]
    {
         return privateKey;
    }
virtual const PrivateKey& micxx::PKCS12Store::getPrivateKey ( ) const [inline, virtual]
    {
         return privateKey;
    }
virtual const std::string& micxx::PKCS12Store::getURL ( ) const [inline, virtual]
    {
         return url;
    }
virtual void micxx::PKCS12Store::load ( const std::string &  url,
const std::string *  passphrase = 0 
) [virtual]

Try to load a PKCS#12 container from URL url using the optional passphrase.

virtual std::string micxx::PKCS12Store::toString ( ) const [virtual]

Return a string representation.

Reimplemented from micxx::traits::ToString.


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