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

The PrivateKey class is a memory representation of a private key. More...

#include <micxx/net/SSLProtocol.hxx>

Inherits micxx::traits::ToString.

List of all members.

Public Member Functions

 PrivateKey ()
 PrivateKey (const PrivateKey &right)
virtual ~PrivateKey ()
virtual void clear ()
virtual const std::string & getURL () const
virtual void load (const std::string &url, const std::string *passphrase)
 Try to load a private key from URL url using the optional passphrase.
virtual PrivateKeyoperator= (const PrivateKey &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 PKCS12Store

Detailed Description

The PrivateKey class is a memory representation of a private key.

The SSLPrivateKey class is a memory representation of a private key.

Author:
Norbert Klose
Date:
October, 2011

Constructor & Destructor Documentation

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

Member Function Documentation

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

Try to load a private key from URL url using the optional passphrase.

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

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

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

Return a string representation.

Reimplemented from micxx::traits::ToString.


Friends And Related Function Documentation

friend class PKCS12Store [friend]

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