libcamgm
|
#include <ExtendedKeyUsageExt.hpp>
Public Member Functions | |
ExtendedKeyUsageExt () | |
ExtendedKeyUsageExt (CAConfig *caConfig, Type type) | |
ExtendedKeyUsageExt (const StringList &extKeyUsages) | |
ExtendedKeyUsageExt (const ExtendedKeyUsageExt &extension) | |
virtual | ~ExtendedKeyUsageExt () |
ExtendedKeyUsageExt & | operator= (const ExtendedKeyUsageExt &extension) |
void | setExtendedKeyUsage (const StringList &usageList) |
StringList | getExtendedKeyUsage () const |
bool | isEnabledFor (const std::string &extKeyUsage) 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 Member Functions | |
bool | checkValue (const std::string &value) const |
Private Attributes | |
ca_mgm::RWCOW_pointer < ExtendedKeyUsageExtImpl > | m_impl |
This extensions consists of a list of usages.
These can either be object short names of the dotted numerical form of OIDs.
ca_mgm::ExtendedKeyUsageExt::ExtendedKeyUsageExt | ( | ) |
ca_mgm::ExtendedKeyUsageExt::ExtendedKeyUsageExt | ( | const StringList & | extKeyUsages | ) |
Create an object with the specified bit field and a List of additional OIDs
ca_mgm::ExtendedKeyUsageExt::ExtendedKeyUsageExt | ( | const ExtendedKeyUsageExt & | extension | ) |
|
virtual |
|
private |
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.
StringList ca_mgm::ExtendedKeyUsageExt::getExtendedKeyUsage | ( | ) | const |
Return the list of extended keyusages
bool ca_mgm::ExtendedKeyUsageExt::isEnabledFor | ( | const std::string & | extKeyUsage | ) | const |
Return true if the specified usage is set
ExtendedKeyUsageExt& ca_mgm::ExtendedKeyUsageExt::operator= | ( | const ExtendedKeyUsageExt & | extension | ) |
void ca_mgm::ExtendedKeyUsageExt::setExtendedKeyUsage | ( | const StringList & | usageList | ) |
Set new extended key usage.
usageList | this list can contain the short names or long OIDs
|
|
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 |