CPKIFInhibitAnyPolicy Class Reference

#include <InhibitAnyPolicy.h>

Inheritance diagram for CPKIFInhibitAnyPolicy:

Inheritance graph
[legend]
Collaboration diagram for CPKIFInhibitAnyPolicy:

Collaboration graph
[legend]

List of all members.


Detailed Description

CPKIFInhibitAnyPolicy provides access to information found in an inhibit any policy extension. The ASN.1 definition for this extension is simply an integer as shown below:
SkipCerts ::= 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 39 of file InhibitAnyPolicy.h.


Public Member Functions

 CPKIFInhibitAnyPolicy ()
 CPKIFInhibitAnyPolicy (const bool &criticality, const CPKIFBufferPtr &ext)
virtual ~CPKIFInhibitAnyPolicy ()
const CPKIFOIDPtr oid () const
int SkipCerts ()
void SetSkipCerts (int skipCerts)
CPKIFBufferPtr value () const

Static Public Attributes

static char extOID [] = "2.5.29.54"

Constructor & Destructor Documentation

CPKIFInhibitAnyPolicy::CPKIFInhibitAnyPolicy (  ) 

Interface: External

Default constructor

Returns:
None

Definition at line 40 of file InhibitAnyPolicy.cpp.

CPKIFInhibitAnyPolicy::CPKIFInhibitAnyPolicy ( 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 InhibitAnyPolicy.cpp.

References CACASNWRAPPER_CREATE.

CPKIFInhibitAnyPolicy::~CPKIFInhibitAnyPolicy (  )  [virtual]

Interface: External

The function destroys an instance of CPKIFInhibitAnyPolicy.

Returns:
None

Definition at line 101 of file InhibitAnyPolicy.cpp.


Member Function Documentation

const CPKIFOIDPtr CPKIFInhibitAnyPolicy::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 117 of file InhibitAnyPolicy.cpp.

References extOID.

int CPKIFInhibitAnyPolicy::SkipCerts (  ) 

Interface: External

This function returns the value of an inhibit any policy extension.

Returns:
The value of an inhibit any policy extension.

Definition at line 132 of file InhibitAnyPolicy.cpp.

Referenced by operator<<().

void CPKIFInhibitAnyPolicy::SetSkipCerts ( int  skipCerts  ) 

Interface: External

This function sets the skip certs value of an inhibit any policy extension.

Returns:
The value of an inhibit any policy extension.

Definition at line 143 of file InhibitAnyPolicy.cpp.

CPKIFBufferPtr CPKIFInhibitAnyPolicy::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 155 of file InhibitAnyPolicy.cpp.

References CACASNWRAPPER_CREATE.


Member Data Documentation

char CPKIFInhibitAnyPolicy::extOID = "2.5.29.54" [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.54".

Definition at line 50 of file InhibitAnyPolicy.h.

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


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

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