#include <BitExtensions.hpp>
Public Types | |
enum | KeyUsage { digitalSignature = 0x0080, nonRepudiation = 0x0040, keyEncipherment = 0x0020, dataEncipherment = 0x0010, keyAgreement = 0x0008, keyCertSign = 0x0004, cRLSign = 0x0002, encipherOnly = 0x0001, decipherOnly = 0x8000 } |
Public Member Functions | |
KeyUsageExt () | |
KeyUsageExt (CAConfig *caConfig, Type type) | |
KeyUsageExt (BLOCXX_NAMESPACE::UInt32 keyUsage) | |
KeyUsageExt (const KeyUsageExt &extension) | |
virtual | ~KeyUsageExt () |
KeyUsageExt & | operator= (const KeyUsageExt &extension) |
void | setKeyUsage (BLOCXX_NAMESPACE::UInt32 keyUsage) |
BLOCXX_NAMESPACE::UInt32 | getKeyUsage () const |
bool | isEnabledFor (KeyUsage ku) const |
virtual void | commit2Config (CA &ca, Type type) const |
virtual bool | valid () const |
virtual BLOCXX_NAMESPACE::StringArray | verify () const |
virtual BLOCXX_NAMESPACE::StringArray | dump () const |
Private Member Functions | |
bool | validKeyUsage (BLOCXX_NAMESPACE::UInt32 keyUsage) const |
This extension describes the usage of this certificate
limal::ca_mgm::KeyUsageExt::KeyUsageExt | ( | ) |
limal::ca_mgm::KeyUsageExt::KeyUsageExt | ( | BLOCXX_NAMESPACE::UInt32 | keyUsage | ) |
Create an object with a specific key usage set
limal::ca_mgm::KeyUsageExt::KeyUsageExt | ( | const KeyUsageExt & | extension | ) |
virtual limal::ca_mgm::KeyUsageExt::~KeyUsageExt | ( | ) | [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 limal::ca_mgm::BitExtension.
virtual BLOCXX_NAMESPACE ::StringArray limal::ca_mgm::KeyUsageExt::dump | ( | ) | const [virtual] |
Return the content of this object for debugging
Implements limal::ca_mgm::BitExtension.
BLOCXX_NAMESPACE ::UInt32 limal::ca_mgm::KeyUsageExt::getKeyUsage | ( | ) | const |
Return the key usage
bool limal::ca_mgm::KeyUsageExt::isEnabledFor | ( | KeyUsage | ku | ) | const |
Return true if the specified bit is set
KeyUsageExt& limal::ca_mgm::KeyUsageExt::operator= | ( | const KeyUsageExt & | extension | ) |
void limal::ca_mgm::KeyUsageExt::setKeyUsage | ( | BLOCXX_NAMESPACE::UInt32 | keyUsage | ) |
Set a new key usage
virtual bool limal::ca_mgm::KeyUsageExt::valid | ( | ) | const [virtual] |
Check if this object is valid
Implements limal::ca_mgm::BitExtension.
bool limal::ca_mgm::KeyUsageExt::validKeyUsage | ( | BLOCXX_NAMESPACE::UInt32 | keyUsage | ) | const [private] |
virtual BLOCXX_NAMESPACE ::StringArray limal::ca_mgm::KeyUsageExt::verify | ( | ) | const [virtual] |
Verify this object and return an Array with all error messages.
Implements limal::ca_mgm::BitExtension.