CPKIFContentTypeAttribute Class Reference

#include <ContentTypeAttribute.h>

Inheritance diagram for CPKIFContentTypeAttribute:

Inheritance graph
[legend]
Collaboration diagram for CPKIFContentTypeAttribute:

Collaboration graph
[legend]

List of all members.


Detailed Description

This class provides support for the CMS Content Type attribute. PKIF automatically generates and includes a Content Type attribute where appropriate. PKIF verifies Content Type attributes, if present, upon verification.

TSP-enforcing: No

Definition at line 24 of file ContentTypeAttribute.h.


Public Member Functions

 CPKIFContentTypeAttribute ()
 CPKIFContentTypeAttribute (const CPKIFBufferPtr &buf)
 ~CPKIFContentTypeAttribute ()
CPKIFOIDPtr GetOID () const
void GetValues (CPKIFBufferList &values) const
void SetContentType (CPKIFOIDPtr &oid)
CPKIFOIDPtr GetContentType ()

Static Public Attributes

static char extOID [] = "1.2.840.113549.1.9.3"

Constructor & Destructor Documentation

CPKIFContentTypeAttribute::CPKIFContentTypeAttribute (  ) 

Interface: External

This constructor creates an instance of CPKIFContentTypeAttribute object. The constructor with no parameters creates a default instance.

Returns:
None

Definition at line 100 of file ContentTypeAttribute.cpp.

References LOG_STRING_DEBUG, and TOOLKIT_MESSAGE_ASN.

CPKIFContentTypeAttribute::CPKIFContentTypeAttribute ( const CPKIFBufferPtr &  buf  ) 

Interface: External

This constructor creates an instance of CPKIFContentTypeAttribute object. The constructor takes the contents of CACCMSAttribute parameter and creates an instance based on that content. This constructor is internally (applications should not call this constructor directly) used by CPKIFContentTypeAttributeFactory::create().

Returns:
None
Exceptions:
CPKIFException(ASN1_DECODE_ERROR) 
Parameters:
buf  [in] The extension to parse into a content type attribute.

Definition at line 129 of file ContentTypeAttribute.cpp.

References LOG_STRING_DEBUG, and TOOLKIT_MESSAGE_ASN.

CPKIFContentTypeAttribute::~CPKIFContentTypeAttribute (  ) 

Interface: External

This function destroys a CPKIFContentTypeAttribute objects.

Returns:
None

Definition at line 148 of file ContentTypeAttribute.cpp.

References LOG_STRING_DEBUG, and TOOLKIT_MESSAGE_ASN.


Member Function Documentation

CPKIFOIDPtr CPKIFContentTypeAttribute::GetOID (  )  const [virtual]

Interface: External

This function returns the OID associated with this type of CMS attribute.

Returns:
Returns the OID associated with this type of CMS attribute.

Reimplemented from CPKIFAttribute.

Definition at line 164 of file ContentTypeAttribute.cpp.

References g_contentTypeAttribute.

void CPKIFContentTypeAttribute::GetValues ( CPKIFBufferList values  )  const [virtual]

Interface: External

This function returns the raw, encoded content type attribute value.

Returns:
Returns the raw, encoded content type attribute value
Exceptions:
CPKIFException(ASN1_ENCODE_ERROR) 
Parameters:
values  [out] Reference to a list of smart pointers to CPKIFBuffer objects containing the encoded values associated with the attribute

Reimplemented from CPKIFAttribute.

Definition at line 177 of file ContentTypeAttribute.cpp.

References ASN1_ENCODE_ERROR, ConvertStringToASN1OBJID(), LOG_STRING_DEBUG, TOOLKIT_MESSAGE, and TOOLKIT_MESSAGE_ASN.

void CPKIFContentTypeAttribute::SetContentType ( CPKIFOIDPtr &  oid  ) 

Interface: External

Set the OID value indicating the content type.

Returns:
None
Exceptions:
CPKIFMessageException(COMMON_INVALID_INPUT) 
Parameters:
oid  [in] Reference to a smart pointer to a CPKIFOID object containing the OID value to set

Definition at line 238 of file ContentTypeAttribute.cpp.

References COMMON_INVALID_INPUT, LOG_STRING_DEBUG, TOOLKIT_MESSAGE, and TOOLKIT_MESSAGE_ASN.

CPKIFOIDPtr CPKIFContentTypeAttribute::GetContentType (  ) 

Interface: External

Get the OID value indicating the content type.

Returns:
A smart pointer to CPKIFOID object

Definition at line 257 of file ContentTypeAttribute.cpp.


Member Data Documentation

char CPKIFContentTypeAttribute::extOID = "1.2.840.113549.1.9.3" [static]

Definition at line 31 of file ContentTypeAttribute.h.

Referenced by CPKIFContentTypeAttributeFactory::refOID().


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

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