libcamgm
|
#include <BasicConstraintsExtension.hpp>
Public Member Functions | |
BasicConstraintsExt () | |
BasicConstraintsExt (CAConfig *caConfig, Type type) | |
BasicConstraintsExt (bool isCa, int32_t pathLength=-1) | |
BasicConstraintsExt (const BasicConstraintsExt &extension) | |
virtual | ~BasicConstraintsExt () |
BasicConstraintsExt & | operator= (const BasicConstraintsExt &extension) |
void | setBasicConstraints (bool isCa, int32_t pathLength=-1) |
bool | isCA () const |
int32_t | getPathLength () const |
virtual void | commit2Config (CA &ca, Type type) const |
virtual bool | valid () const |
virtual std::vector< std::string > | verify () const |
virtual std::vector< std::string > | dump () const |
![]() | |
ExtensionBase (bool extPresent=false, bool extCritical=false) | |
ExtensionBase (const ExtensionBase &extension) | |
virtual | ~ExtensionBase () |
ExtensionBase & | operator= (const ExtensionBase &extension) |
void | setPresent (bool extPresent) |
void | setCritical (bool extCritical) |
bool | isCritical () const |
bool | isPresent () const |
Private Attributes | |
ca_mgm::RWCOW_pointer< BasicConstraintsExtImpl > | m_impl |
If the ca parameter is set to true this certificate is a Certificate Authority. The pathlen parameter indicates the maximum number of CAs that can appear below this one in a chain.
ca_mgm::BasicConstraintsExt::BasicConstraintsExt | ( | ) |
ca_mgm::BasicConstraintsExt::BasicConstraintsExt | ( | bool | isCa, |
int32_t | pathLength = -1 |
||
) |
ca_mgm::BasicConstraintsExt::BasicConstraintsExt | ( | const BasicConstraintsExt & | extension | ) |
|
virtual |
Write the informations of this object back to the configuration file
ca | the CA object which holds the config object |
type | the type describes the section of the config file |
Implements ca_mgm::ExtensionBase.
|
virtual |
Return the content of this object for debugging
Reimplemented from ca_mgm::ExtensionBase.
int32_t ca_mgm::BasicConstraintsExt::getPathLength | ( | ) | const |
Return the path length (-1 means no path length set)
bool ca_mgm::BasicConstraintsExt::isCA | ( | ) | const |
Return the ca parameter
BasicConstraintsExt& ca_mgm::BasicConstraintsExt::operator= | ( | const BasicConstraintsExt & | extension | ) |
void ca_mgm::BasicConstraintsExt::setBasicConstraints | ( | bool | isCa, |
int32_t | pathLength = -1 |
||
) |
Set the ca parameter and the path length.
isCa | set it to true if you want a CA, otherwise false. |
pathLength | maximum number of CAs that can appear below this one in a chain; -1 means no path Length is set. |
|
virtual |
Check if this object is valid
Implements ca_mgm::ExtensionBase.
|
virtual |
Verify this object and return an Array with all error messages.
Implements ca_mgm::ExtensionBase.
|
private |