CPKIFPolicyMappings Class Reference

#include <PolicyMappings.h>

Inheritance diagram for CPKIFPolicyMappings:

Inheritance graph
[legend]
Collaboration diagram for CPKIFPolicyMappings:

Collaboration graph
[legend]

List of all members.


Detailed Description

CPKIFPolicyMappings provides access to information found in a policy mappings extension. The ASN.1 definition used by PKIF is given below:
PolicyMappingsSyntax ::= SEQUENCE  SIZE(1..MAX) OF PolicyMapSyntax

PolicyMapSyntax ::= SEQUENCE 
{
    issuerDomainPolicy CertPolicyId,
    subjectDomainPolicy CertPolicyId
}
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 46 of file PolicyMappings.h.


Public Member Functions

 CPKIFPolicyMappings ()
 CPKIFPolicyMappings (const bool &criticality, const CPKIFBufferPtr &ext)
virtual ~CPKIFPolicyMappings ()
const CPKIFOIDPtr oid () const
CPKIFPolicyMappingListPtr PolicyMappings () const
CPKIFBufferPtr value () const

Static Public Attributes

static char extOID [] = "2.5.29.33"

Constructor & Destructor Documentation

CPKIFPolicyMappings::CPKIFPolicyMappings (  ) 

Interface: External

Default constructor

Returns:
None

Definition at line 41 of file PolicyMappings.cpp.

CPKIFPolicyMappings::CPKIFPolicyMappings ( 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 88 of file PolicyMappings.cpp.

References CACASNWRAPPER_CREATE.

CPKIFPolicyMappings::~CPKIFPolicyMappings (  )  [virtual]

Interface: External

The function destroys an instance of CPKIFPolicyMappings.

Returns:
None

Definition at line 136 of file PolicyMappings.cpp.


Member Function Documentation

const CPKIFOIDPtr CPKIFPolicyMappings::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 152 of file PolicyMappings.cpp.

References extOID.

CPKIFPolicyMappingListPtr CPKIFPolicyMappings::PolicyMappings (  )  const

Interface: External

This function returns a list of policy mapping objects from a policy mappings extension.

Returns:
A list of policy mapping objects from a policy mappings extension.

Definition at line 125 of file PolicyMappings.cpp.

Referenced by operator<<().

CPKIFBufferPtr CPKIFPolicyMappings::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 167 of file PolicyMappings.cpp.


Member Data Documentation

char CPKIFPolicyMappings::extOID = "2.5.29.33" [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.33".

Definition at line 57 of file PolicyMappings.h.

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


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

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