CPKIFIssuingDistributionPoint Class Reference

#include <IssuingDistributionPoint.h>

Inheritance diagram for CPKIFIssuingDistributionPoint:

Inheritance graph
[legend]
Collaboration diagram for CPKIFIssuingDistributionPoint:

Collaboration graph
[legend]

List of all members.


Detailed Description

CPKIFIssuingDistributionPoint provides access to information found in an issuing distribution point extension. The ASN.1 definition used by PKIF is given below:

IssuingDistPointSyntax ::= SEQUENCE 
{
    distributionPoint          [0] DistributionPointName OPTIONAL,
    onlyContainsUserCerts      [1] BOOLEAN DEFAULT FALSE,
    onlyContainsCACerts        [2] BOOLEAN DEFAULT FALSE,
    onlySomeReasons            [3] ReasonFlags OPTIONAL,
    indirectCRL                [4] BOOLEAN DEFAULT FALSE 
}

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 51 of file IssuingDistributionPoint.h.


Public Member Functions

 CPKIFIssuingDistributionPoint ()
 CPKIFIssuingDistributionPoint (const bool &criticality, const CPKIFBufferPtr &ext)
virtual ~CPKIFIssuingDistributionPoint ()
const CPKIFOIDPtr oid () const
CPKIFDistributionPointNamePtr DistributionPoint () const
bool OnlyContainsUserCerts () const
bool OnlyContainsAuthorityCerts () const
bool OnlySomeReasons () const
bool IndirectCRL () const
bool OnlyContainsAttributeCerts () const
CPKIFReasonFlagsPtr GetReasons () const
bool operator== (const CPKIFIssuingDistributionPoint &idp)
CPKIFBufferPtr value () const

Static Public Attributes

static char extOID [] = "2.5.29.28"

Constructor & Destructor Documentation

CPKIFIssuingDistributionPoint::CPKIFIssuingDistributionPoint (  ) 

Interface: External

Default constructor

Returns:
None

Definition at line 46 of file IssuingDistributionPoint.cpp.

CPKIFIssuingDistributionPoint::CPKIFIssuingDistributionPoint ( 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 98 of file IssuingDistributionPoint.cpp.

References CACASNWRAPPER_CREATE.

CPKIFIssuingDistributionPoint::~CPKIFIssuingDistributionPoint (  )  [virtual]

Interface: External

The function destroys an instance of CPKIFIssuingDistributionPoint.

Returns:
None

Definition at line 251 of file IssuingDistributionPoint.cpp.


Member Function Documentation

const CPKIFOIDPtr CPKIFIssuingDistributionPoint::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 265 of file IssuingDistributionPoint.cpp.

References extOID.

CPKIFDistributionPointNamePtr CPKIFIssuingDistributionPoint::DistributionPoint (  )  const

Interface: External

This function returns the distribution point object from an issuing distribution point extension, if present.

Returns:
The distribution point object from an issuing distribution point extension, if present.

Definition at line 159 of file IssuingDistributionPoint.cpp.

Referenced by operator==(), and CPKIFGeneralCRLDetailsPanel::PopulateListExtensions().

bool CPKIFIssuingDistributionPoint::OnlyContainsUserCerts (  )  const

Interface: External

This function returns a Boolean indicating whether the CRL associated with the issuing distribution point extension contains revocation information for user certificates only.

Return values:
True if the CRL associated with the issuing distribution point extension contains revocation information for user certificates only.
False if the CRL associated with the issuing distribution point extension does not contain revocation information for user certificates only.

Definition at line 169 of file IssuingDistributionPoint.cpp.

Referenced by operator==(), and CPKIFGeneralCRLDetailsPanel::PopulateListExtensions().

bool CPKIFIssuingDistributionPoint::OnlyContainsAuthorityCerts (  )  const

Interface: External

This function returns a Boolean indicating whether the CRL associated with the issuing distribution point extension contains revocation information for CA certificates only.

Return values:
True if the CRL associated with the issuing distribution point extension contains revocation information for CA certificates only.
False if the CRL associated with the issuing distribution point extension does not contains revocation information for CA certificates only.

Definition at line 179 of file IssuingDistributionPoint.cpp.

Referenced by operator==(), and CPKIFGeneralCRLDetailsPanel::PopulateListExtensions().

bool CPKIFIssuingDistributionPoint::OnlySomeReasons (  )  const

Interface: External

This function returns a Boolean indicating whether the CRL associated with the issuing distribution point extension contains revocation information for a subset of revocation reasons.

Return values:
True if the CRL associated with the issuing distribution point extension contains revocation information for a subset of revocation reasons.
False if the CRL associated with the issuing distribution point extension does not contain revocation information for a subset of revocation reasons.

Definition at line 189 of file IssuingDistributionPoint.cpp.

Referenced by operator==(), and CPKIFGeneralCRLDetailsPanel::PopulateListExtensions().

bool CPKIFIssuingDistributionPoint::IndirectCRL (  )  const

Interface: External

This function returns a Boolean indicating whether the CRL associated with the issuing distribution point extension contains revocation information for certificates issued by CAs other than the issuer of the CRL.

Return values:
True if the CRL associated with the issuing distribution point extension contains revocation information for certificates issued by CAs other than the issuer of the CRL.
True if the CRL associated with the issuing distribution point extension does not contain revocation information for certificates issued by CAs other than the issuer of the CRL.

Definition at line 199 of file IssuingDistributionPoint.cpp.

Referenced by operator==(), and CPKIFGeneralCRLDetailsPanel::PopulateListExtensions().

bool CPKIFIssuingDistributionPoint::OnlyContainsAttributeCerts (  )  const

Interface: External

This function returns a Boolean indicating whether the CRL associated with the issuing distribution point extension contains revocation information for attribute certificates only.

Return values:
True if the CRL associated with the issuing distribution point extension contains revocation information for attribute certificates only.
True if the CRL associated with the issuing distribution point extension does not contain revocation information for attribute certificates only.

Definition at line 209 of file IssuingDistributionPoint.cpp.

Referenced by operator==().

CPKIFReasonFlagsPtr CPKIFIssuingDistributionPoint::GetReasons (  )  const

Interface: External

This function returns reson flags assosiated with this instance of CPKIFIssuingDistributionPoint object

Returns:
A smart pointer to a CPKIFReasonFlags object containing reson flags

Definition at line 280 of file IssuingDistributionPoint.cpp.

bool CPKIFIssuingDistributionPoint::operator== ( const CPKIFIssuingDistributionPoint idp  ) 

Interface: External

This function compares two CPKIFIssuingDistributionPoint objects and returns true if they contain the same information.

Returns:
True if they contain the same information.
Parameters:
idp  A reference to CPKIFIssuingDistributionPoint object

Definition at line 217 of file IssuingDistributionPoint.cpp.

References DistributionPoint(), IndirectCRL(), OnlyContainsAttributeCerts(), OnlyContainsAuthorityCerts(), OnlyContainsUserCerts(), and OnlySomeReasons().

CPKIFBufferPtr CPKIFIssuingDistributionPoint::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 292 of file IssuingDistributionPoint.cpp.


Member Data Documentation

char CPKIFIssuingDistributionPoint::extOID = "2.5.29.28" [static]

Definition at line 59 of file IssuingDistributionPoint.h.

Referenced by oid(), and CPKIFIssuingDistributionPointFactory::refOID().


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

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