CPKIFTimestampAttribute Class Reference

#include <TimestampAttribute.h>

Inheritance diagram for CPKIFTimestampAttribute:

Inheritance graph
[legend]
Collaboration diagram for CPKIFTimestampAttribute:

Collaboration graph
[legend]

List of all members.


Detailed Description

This class provides support for the CMS Timestamp attribute. See CPKIFSignerInfo::AddSignedAttribute for details on how to create and associate CMS attributes with signed data objects.

TSP-enforcing: No

Definition at line 28 of file TimestampAttribute.h.


Public Member Functions

 CPKIFTimestampAttribute ()
 CPKIFTimestampAttribute (const CPKIFBufferPtr &buf)
 ~CPKIFTimestampAttribute ()
CPKIFOIDPtr GetOID () const
void GetValues (CPKIFBufferList &values) const
void SetTimestamp (CPKIFContentInfoPtr &ts)
CPKIFContentInfoPtr GetTimestamp () const

Static Public Attributes

static char extOID [] = "1.2.840.113549.1.9.16.2.14"

Constructor & Destructor Documentation

CPKIFTimestampAttribute::CPKIFTimestampAttribute (  ) 

Interface: External

Default constuctor

Returns:
None

Definition at line 68 of file TimestampAttribute.cpp.

References LOG_STRING_DEBUG, and TOOLKIT_MESSAGE_ASN.

CPKIFTimestampAttribute::CPKIFTimestampAttribute ( const CPKIFBufferPtr &  buf  ) 

Interface: External

The parameterized version of the constructor is called from CPKIFTimestampAttributeFactory::create().

Returns:
None Interface: External
The parameterized version of the constructor is called from CPKIFTimestampAttributeFactory::create().

Returns:
None
Parameters:
buf  [in] The value to parse into a timestamp attribute.

Definition at line 99 of file TimestampAttribute.cpp.

References LOG_STRING_DEBUG, and TOOLKIT_MESSAGE_ASN.

CPKIFTimestampAttribute::~CPKIFTimestampAttribute (  ) 

Interface: External

Destroys a CPKIFTimestampAttribute object.

Returns:
None

Definition at line 116 of file TimestampAttribute.cpp.

References LOG_STRING_DEBUG, and TOOLKIT_MESSAGE_ASN.


Member Function Documentation

CPKIFOIDPtr CPKIFTimestampAttribute::GetOID (  )  const [virtual]

Interface: External

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

Returns:
The OID associated with this type of CMS attribute

Reimplemented from CPKIFAttribute.

Definition at line 134 of file TimestampAttribute.cpp.

References g_timestampAttribute.

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

Interface: External

This function returns the raw, encoded time stamp attribute values.

Returns:
None
Parameters:
values  [out] The list of values stored by the attribute.

Reimplemented from CPKIFAttribute.

Definition at line 145 of file TimestampAttribute.cpp.

References LOG_STRING_DEBUG, and TOOLKIT_MESSAGE_ASN.

void CPKIFTimestampAttribute::SetTimestamp ( CPKIFContentInfoPtr &  ts  ) 

Interface: External

This function is used to set the timestamp value conveyed by the attribute.

Returns:
None
Exceptions:
CPKIFMessageException(COMMON_INVALID_INPUT) 
Parameters:
ts  [in] The timestamp value to set

Definition at line 171 of file TimestampAttribute.cpp.

References COMMON_INVALID_INPUT, LOG_STRING_DEBUG, TOOLKIT_MESSAGE, and TOOLKIT_MESSAGE_ASN.

CPKIFContentInfoPtr CPKIFTimestampAttribute::GetTimestamp (  )  const

Interface: External

This function is used to get the timestamp value conveyed by the attribute.

Returns:
None

Definition at line 190 of file TimestampAttribute.cpp.


Member Data Documentation

char CPKIFTimestampAttribute::extOID = "1.2.840.113549.1.9.16.2.14" [static]

Definition at line 35 of file TimestampAttribute.h.

Referenced by CPKIFTimestampAttributeFactory::refOID().


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

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