#include <ContentTypeAttribute.h>
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" |
CPKIFContentTypeAttribute::CPKIFContentTypeAttribute | ( | ) |
Interface: External
This constructor creates an instance of CPKIFContentTypeAttribute object. The constructor with no parameters creates a default instance.
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().
CPKIFException(ASN1_DECODE_ERROR) |
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.
Definition at line 148 of file ContentTypeAttribute.cpp.
References LOG_STRING_DEBUG, and TOOLKIT_MESSAGE_ASN.
CPKIFOIDPtr CPKIFContentTypeAttribute::GetOID | ( | ) | const [virtual] |
Interface: External
This function 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.
CPKIFException(ASN1_ENCODE_ERROR) |
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.
CPKIFMessageException(COMMON_INVALID_INPUT) |
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.
Definition at line 257 of file ContentTypeAttribute.cpp.
char CPKIFContentTypeAttribute::extOID = "1.2.840.113549.1.9.3" [static] |
Definition at line 31 of file ContentTypeAttribute.h.
Referenced by CPKIFContentTypeAttributeFactory::refOID().