#include <PrivateKeyUsage.h>
PrivateKeyUsagePeriod ::= SEQUENCE { notBefore [0] GeneralizedTime OPTIONAL, notAfter [ 1] GeneralizedTime OPTIONAL }
For details on accessing extensions in a certificate or CRL, see the sections on CPKIFCertificate and CPKIFCRL. PKIF does not provide a means of encoding extensions. This class is used to parse extensions present in encoded objects, e.g. public-key certificates.
TSP-enforcing: No
Definition at line 42 of file PrivateKeyUsage.h.
Public Member Functions | |
CPKIFPrivateKeyUsage () | |
CPKIFPrivateKeyUsage (const bool &criticality, const CPKIFBufferPtr &ext) | |
virtual | ~CPKIFPrivateKeyUsage () |
const CPKIFOIDPtr | oid () const |
const char * | NotAfter () const |
const char * | NotBefore () const |
CPKIFBufferPtr | value () const |
Static Public Attributes | |
static char | extOID [] = "2.5.29.16" |
CPKIFPrivateKeyUsage::CPKIFPrivateKeyUsage | ( | ) |
Interface: External
Default constructor
Definition at line 38 of file PrivateKeyUsage.cpp.
CPKIFPrivateKeyUsage::CPKIFPrivateKeyUsage | ( | const bool & | criticality, | |
const CPKIFBufferPtr & | ext | |||
) |
Interface: External
This constructor is internally invoked; it will throw a std::bad_alloc exception if allocation of memory fails or ASN.1 decoding errors if the extension cannot be parsed.
std::bad_alloc | Interface: External |
std::bad_alloc |
Definition at line 85 of file PrivateKeyUsage.cpp.
References CACASNWRAPPER_CREATE.
CPKIFPrivateKeyUsage::~CPKIFPrivateKeyUsage | ( | ) | [virtual] |
Interface: External
The function destroys an instance of CPKIFPrivateKeyUsage.
Definition at line 117 of file PrivateKeyUsage.cpp.
const CPKIFOIDPtr CPKIFPrivateKeyUsage::oid | ( | ) | const [virtual] |
Interface: External
This function returns a smart pointer to a CPKIFOID object containing the object identifier associated with this type of extension.
Reimplemented from CPKIFX509Extension.
Definition at line 162 of file PrivateKeyUsage.cpp.
References extOID.
const char * CPKIFPrivateKeyUsage::NotAfter | ( | ) | const |
Interface: External
This function returns the not after time from a private key usage period extension.
Definition at line 132 of file PrivateKeyUsage.cpp.
const char * CPKIFPrivateKeyUsage::NotBefore | ( | ) | const |
Interface: External
This function returns the not before time from a private key usage period extension.
Definition at line 146 of file PrivateKeyUsage.cpp.
CPKIFBufferPtr CPKIFPrivateKeyUsage::value | ( | ) | const [virtual] |
Interface: External
This function returns a smart pointer to a CPKIFBuffer object containing value of the extension.
Reimplemented from CPKIFX509Extension.
Definition at line 177 of file PrivateKeyUsage.cpp.
char CPKIFPrivateKeyUsage::extOID = "2.5.29.16" [static] |
The extOID member of each extension class provides a NULL terminated string representation of the object identifier that identifies the extension. The value defined for this class is "2.5.29.16".
Definition at line 53 of file PrivateKeyUsage.h.
Referenced by oid(), and CPKIFPrivateKeyUsageFactory::refOID().