CPKIFSecurityCategory Class Reference

#include <SecurityCategory.h>

Collaboration diagram for CPKIFSecurityCategory:

Collaboration graph
[legend]

List of all members.


Detailed Description

CPKIFSecurityCategory provides access to information found in a security categoty ASN1 structure. The ASN.1 definition is given below:
SecurityCategory ::= SEQUENCE 
{
   type      [0]  OBJECT IDENTIFIER,
   value     [1]  ANY DEFINED BY type
 }

TSP-enforcing: No

Definition at line 40 of file SecurityCategory.h.


Public Member Functions

 CPKIFSecurityCategory ()
 CPKIFSecurityCategory (const CPKIFBufferPtr &ext)
virtual ~CPKIFSecurityCategory ()
const CPKIFOIDPtr GetType () const
const CPKIFBufferPtr GetValue () const

Constructor & Destructor Documentation

CPKIFSecurityCategory::CPKIFSecurityCategory (  ) 

Interface: External

Defaul constructor

Returns:
None

Definition at line 34 of file SecurityCategory.cpp.

CPKIFSecurityCategory::CPKIFSecurityCategory ( 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 security category cannot be parsed.

Returns:
None
Exceptions:
std::bad_alloc 

Definition at line 49 of file SecurityCategory.cpp.

References CACASNWRAPPER_CREATE, COMMON_INVALID_INPUT, and TOOLKIT_X509_ASN.

CPKIFSecurityCategory::~CPKIFSecurityCategory (  )  [virtual]

Interface: External

The function destroys an instance of CPKIFSecurityCategory.

Returns:
None

Definition at line 77 of file SecurityCategory.cpp.


Member Function Documentation

const CPKIFOIDPtr CPKIFSecurityCategory::GetType (  )  const

Interface: External

This function is used to retrive security category type

Returns:
Smart pointer to CPKIFOID object containing SecurityCategory type

Definition at line 91 of file SecurityCategory.cpp.

const CPKIFBufferPtr CPKIFSecurityCategory::GetValue (  )  const

Interface: External

This function is used to retrive security category value

Returns:
Smart pointer to CPKIFBuffer object containing SecurityCategory value

Definition at line 103 of file SecurityCategory.cpp.


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

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