CPKIFPolicyInformationSet Class Reference

#include <PolicyInformationSet.h>

Inheritance diagram for CPKIFPolicyInformationSet:

Inheritance graph
[legend]
Collaboration diagram for CPKIFPolicyInformationSet:

Collaboration graph
[legend]

List of all members.


Detailed Description

CPKIFPolicyInformationSet provides access to information found in a certificate policies extension. The ASN.1 definition used by PKIF is given below:
CertificatePoliciesSyntax ::= SEQUENCE SIZE(1..MAX) OF PolicyInformation 

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 PolicyInformationSet.h.


Public Member Functions

 CPKIFPolicyInformationSet ()
 CPKIFPolicyInformationSet (const bool &criticality, const CPKIFBufferPtr &ext)
virtual ~CPKIFPolicyInformationSet ()
const CPKIFOIDPtr oid () const
CPKIFPolicyInformationListPtr GetPolicySet () const
void SetPolicySet (CPKIFPolicyInformationListPtr &pol)
CPKIFBufferPtr value () const

Static Public Attributes

static char extOID [] = "2.5.29.32"

Constructor & Destructor Documentation

CPKIFPolicyInformationSet::CPKIFPolicyInformationSet (  ) 

Interface: External

Default constructor

Returns:
None

Definition at line 47 of file PolicyInformationSet.cpp.

CPKIFPolicyInformationSet::CPKIFPolicyInformationSet ( 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.

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

Returns:
None
Exceptions:
std::bad_alloc 

Definition at line 130 of file PolicyInformationSet.cpp.

References CACASNWRAPPER_CREATE.

CPKIFPolicyInformationSet::~CPKIFPolicyInformationSet (  )  [virtual]

Interface: External

The function destroys an instance of CPKIFPolicyInformationSet.

Returns:
None

Definition at line 167 of file PolicyInformationSet.cpp.


Member Function Documentation

const CPKIFOIDPtr CPKIFPolicyInformationSet::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 184 of file PolicyInformationSet.cpp.

References extOID.

Referenced by CPKIFGeneralCertificateDetailsPanel::OnInitDialog().

CPKIFPolicyInformationListPtr CPKIFPolicyInformationSet::GetPolicySet (  )  const

Interface: External

This function returns the list of certificate policies from a certificate policies extension. Return type is a smart pointer to CPKIFPolicyInformationList object.

Returns:
The list of certificate policies from a certificate policies extension.

Definition at line 64 of file PolicyInformationSet.cpp.

Referenced by operator<<().

void CPKIFPolicyInformationSet::SetPolicySet ( CPKIFPolicyInformationListPtr &  polSet  ) 

Interface: External

This function sets the list of certificate policies from a certificate policies extension.

Returns:
None

Definition at line 77 of file PolicyInformationSet.cpp.

CPKIFBufferPtr CPKIFPolicyInformationSet::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 200 of file PolicyInformationSet.cpp.

References CACASNWRAPPER_CREATE, ConvertStringToASN1OBJID(), CopyOID(), FreeList(), NEW_NEXT_AND_ADVANCE, NEW_NODE, and SET_HEAD_TAIL_INCREMENT.


Member Data Documentation

char CPKIFPolicyInformationSet::extOID = "2.5.29.32" [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.32".

Definition at line 54 of file PolicyInformationSet.h.

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


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

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