CPKIFCRLStreamIdentifier Class Reference

#include <CRLStreamIdentifier.h>

Inheritance diagram for CPKIFCRLStreamIdentifier:

Inheritance graph
[legend]
Collaboration diagram for CPKIFCRLStreamIdentifier:

Collaboration graph
[legend]

List of all members.


Detailed Description

CPKIFCRLStreamIdentifier provides access to information found in a CRL stream identifier extension. CRL stream identifiers are simply CRLNumber objects, which are simply integers. The ASN.1 definition used by PKIF is given below:
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"

Constructor & Destructor Documentation

CPKIFCRLStreamIdentifier::CPKIFCRLStreamIdentifier (  ) 

Interface: External

Default constructor

Returns:
None

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.

Returns:
None
Exceptions:
std::bad_alloc 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.

Returns:
None
Exceptions:
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.

Returns:
None

Definition at line 106 of file CRLStreamIdentifier.cpp.


Member Function Documentation

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.

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.

Returns:
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.

Returns:
Returns true if both CPKIFCRLStreamIdentifiers have the same value.
Parameters:
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.

Returns:
A smart pointer to a CPKIFBuffer object containing value of the extension.

Reimplemented from CPKIFX509Extension.

Definition at line 170 of file CRLStreamIdentifier.cpp.


Member Data Documentation

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().


The documentation for this class was generated from the following files:

Generated on Mon Nov 15 11:20:09 2010 for PublicKeyInfrastructureFramework(PKIF) by  doxygen 1.5.6