CPKIFSigningCertificateAttribute Class Reference

#include <SigningCertificateAttribute.h>

Inheritance diagram for CPKIFSigningCertificateAttribute:

Inheritance graph
[legend]
Collaboration diagram for CPKIFSigningCertificateAttribute:

Collaboration graph
[legend]

List of all members.


Detailed Description

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

TSP-enforcing: No

Definition at line 32 of file SigningCertificateAttribute.h.


Public Member Functions

 CPKIFSigningCertificateAttribute ()
 CPKIFSigningCertificateAttribute (const CPKIFBufferPtr &buf)
 ~CPKIFSigningCertificateAttribute ()
CPKIFOIDPtr GetOID () const
void GetValues (CPKIFBufferList &values) const
CPKIFESSCertIdListPtr GetCerts () const
CPKIFPolicyInformationListPtr GetPolicies () const
void SetCerts (CPKIFESSCertIdListPtr &certIDList)
void SetPolicies (CPKIFPolicyInformationListPtr &policyList)

Static Public Attributes

static char extOID [] = "1.2.840.113549.1.9.16.2.12"

Constructor & Destructor Documentation

CPKIFSigningCertificateAttribute::CPKIFSigningCertificateAttribute (  ) 

Interface: External

Default constructor.

Returns:
None

Definition at line 111 of file SigningCertificateAttribute.cpp.

References LOG_STRING_DEBUG, and TOOLKIT_MESSAGE_ASN.

CPKIFSigningCertificateAttribute::CPKIFSigningCertificateAttribute ( const CPKIFBufferPtr &  buf  ) 

Interface: External

This constructor is called from CPKIFSigningCertificateAttributeFactory::create().

Returns:
None
Parameters:
buf  [in] The raw attribute to convert to a CPKIFSigningCertificateAttribute.

Definition at line 124 of file SigningCertificateAttribute.cpp.

References LOG_STRING_DEBUG, and TOOLKIT_MESSAGE_ASN.

CPKIFSigningCertificateAttribute::~CPKIFSigningCertificateAttribute (  ) 

Interface: External

Destroys an instance of CPKIFSigningCertificateAttribute object.

Returns:
None

Definition at line 141 of file SigningCertificateAttribute.cpp.

References LOG_STRING_DEBUG, and TOOLKIT_MESSAGE_ASN.


Member Function Documentation

CPKIFOIDPtr CPKIFSigningCertificateAttribute::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 157 of file SigningCertificateAttribute.cpp.

References g_signingCertificateAttribute.

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

Interface: External

This function returns the raw, encoded signing time attribute value.

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

Reimplemented from CPKIFAttribute.

Definition at line 168 of file SigningCertificateAttribute.cpp.

References CACASNWRAPPER_CREATE, CopyGeneralName(), CPKIFASNWrapper< T >::Encode(), LOG_STRING_DEBUG, MSG_INCOMPLETE, NEW_NEXT_AND_ADVANCE, NEW_NODE, SET_HEAD_TAIL_INCREMENT, and TOOLKIT_MESSAGE_ASN.

CPKIFESSCertIdListPtr CPKIFSigningCertificateAttribute::GetCerts (  )  const

Interface: External

This function returns certificate id list

Returns:
Smart pointer to CPKIFESSCertIdList object containing cert id list

Definition at line 388 of file SigningCertificateAttribute.cpp.

CPKIFPolicyInformationListPtr CPKIFSigningCertificateAttribute::GetPolicies (  )  const

Interface: External

This function returns policy list

Returns:
Smart pointer to CPKIFPolicyInformationList object containing policy list

Definition at line 399 of file SigningCertificateAttribute.cpp.

void CPKIFSigningCertificateAttribute::SetCerts ( CPKIFESSCertIdListPtr &  certIDList  ) 

Interface: External

This function sets certificate id list

Returns:
None
Parameters:
certIDList  [in] Cert id list

Definition at line 410 of file SigningCertificateAttribute.cpp.

void CPKIFSigningCertificateAttribute::SetPolicies ( CPKIFPolicyInformationListPtr &  policyList  ) 

Interface: External

This function sets policy list

Returns:
None
Parameters:
policyList  [in] Policy list

Definition at line 423 of file SigningCertificateAttribute.cpp.


Member Data Documentation

char CPKIFSigningCertificateAttribute::extOID = "1.2.840.113549.1.9.16.2.12" [static]


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

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