#include <CRLStreamIdentifier.h>
cRLStreamIdentifier EXTENSION ::= { SYNTAX CRLStreamIdentifier IDENTIFIED BY id-ce-cRLStreamIdentifier }
CRLStreamIdentifier ::= INTEGER (0..MAX)
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 48 of file CRLStreamIdentifier.h.
Public Member Functions | |
CPKIFCRLStreamIdentifier () | |
CPKIFCRLStreamIdentifier (const bool &criticality, const CPKIFBufferPtr &ext) | |
virtual | ~CPKIFCRLStreamIdentifier () |
const CPKIFOIDPtr | oid () const |
const char * | CRLStreamIdentifier () const |
bool | operator== (const CPKIFCRLStreamIdentifier &rhs) |
CPKIFBufferPtr | value () const |
Static Public Attributes | |
static char | extOID [] = "2.5.29.40" |
CPKIFCRLStreamIdentifier::CPKIFCRLStreamIdentifier | ( | ) |
Interface: External
Default constructor
Definition at line 37 of file CRLStreamIdentifier.cpp.
CPKIFCRLStreamIdentifier::CPKIFCRLStreamIdentifier | ( | const bool & | criticality, | |
const CPKIFBufferPtr & | ext | |||
) |
Interface: External
This constructor is internally invoked; this version 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 78 of file CRLStreamIdentifier.cpp.
References CACASNWRAPPER_CREATE.
CPKIFCRLStreamIdentifier::~CPKIFCRLStreamIdentifier | ( | ) | [virtual] |
Interface: External
The function destroys an instance of CPKIFCRLStreamIdentifier.
Definition at line 106 of file CRLStreamIdentifier.cpp.
const CPKIFOIDPtr CPKIFCRLStreamIdentifier::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 121 of file CRLStreamIdentifier.cpp.
References extOID.
const char * CPKIFCRLStreamIdentifier::CRLStreamIdentifier | ( | ) | const |
Interface: External
The CRL number indicated by a CRL stream identifier extension.
Definition at line 136 of file CRLStreamIdentifier.cpp.
Referenced by operator==().
bool CPKIFCRLStreamIdentifier::operator== | ( | const CPKIFCRLStreamIdentifier & | rhs | ) |
Interface: External
Returns true if both CPKIFCRLStreamIdentifiers have the same value.
rhs | [in] The CPKIFCRLStreamIdentifier to compare to. |
Definition at line 150 of file CRLStreamIdentifier.cpp.
References CRLStreamIdentifier().
CPKIFBufferPtr CPKIFCRLStreamIdentifier::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 170 of file CRLStreamIdentifier.cpp.
char CPKIFCRLStreamIdentifier::extOID = "2.5.29.40" [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.40".
Definition at line 59 of file CRLStreamIdentifier.h.
Referenced by oid(), and CPKIFCRLStreamIdentifierFactory::refOID().