IPKIFHasAttributes Class Reference

#include <IPKIFHasAttributes.h>

Inheritance diagram for IPKIFHasAttributes:

Inheritance graph
[legend]

List of all members.


Detailed Description

This class serves as an interface to be implemented by objects that have attributes fields. Derived objects "should" be able to use the base class implementations of "GetXXXAttributes", provided that the corresponding "GetEncodedXXXAttributes" has been implemented.

TSP-enforcing: No

Definition at line 29 of file IPKIFHasAttributes.h.


Public Member Functions

virtual ~IPKIFHasAttributes ()
virtual void GetUnprotectedAttributes (IPKIFParseAttributes *m, std::vector< CPKIFAttributePtr > &attr)
virtual void GetSignedAttributes (IPKIFParseAttributes *m, std::vector< CPKIFAttributePtr > &attr)
virtual void GetUnsignedAttributes (IPKIFParseAttributes *m, std::vector< CPKIFAttributePtr > &attr)
virtual void GetAttributes (IPKIFParseAttributes *m, std::vector< CPKIFAttributePtr > &attr)
virtual void GetEncodedUnprotectedAttributes (CPKIFBufferPtr &buf)
virtual void GetEncodedSignedAttributes (CPKIFBufferPtr &buf)
virtual void GetEncodedUnsignedAttributes (CPKIFBufferPtr &buf)
virtual void GetEncodedAttributes (CPKIFBufferPtr &buf)
virtual void GetAddedUnprotectedAttributes (std::vector< CPKIFAttributePtr > &attr)
virtual void GetAddedSignedAttributes (std::vector< CPKIFAttributePtr > &attr)
virtual void GetAddedUnsignedAttributes (std::vector< CPKIFAttributePtr > &attr)
virtual void GetAddedAttributes (std::vector< CPKIFAttributePtr > &attr)

Constructor & Destructor Documentation

IPKIFHasAttributes::~IPKIFHasAttributes (  )  [virtual]

Interface: External

Destructor

Returns:
None

Definition at line 25 of file IPKIFHasAttributes.cpp.


Member Function Documentation

void IPKIFHasAttributes::GetUnprotectedAttributes ( IPKIFParseAttributes m,
std::vector< CPKIFAttributePtr > &  attr 
) [virtual]

Interface: External

This function parses the objects extensions using the IPKIFParseAttributes parameter, and populates the vector parameter with pointers to the parsed Attribute objects.

Returns:
None

Definition at line 60 of file IPKIFHasAttributes.cpp.

References GetAddedUnprotectedAttributes(), GetEncodedUnprotectedAttributes(), and IPKIFParseAttributes::ParseAttributes().

Referenced by CPKIFEnvelopedData::_GetUnprotectedAttributes(), and CPKIFEncryptedData::_GetUnprotectedAttributes().

void IPKIFHasAttributes::GetSignedAttributes ( IPKIFParseAttributes m,
std::vector< CPKIFAttributePtr > &  attr 
) [virtual]

Interface: External

This function parses the objects extensions using the IPKIFParseAttributes parameter, and populates the vector parameter with pointers to the parsed Attribute objects.

Returns:
None

Definition at line 82 of file IPKIFHasAttributes.cpp.

References GetAddedSignedAttributes(), GetEncodedSignedAttributes(), and IPKIFParseAttributes::ParseAttributes().

Referenced by CPKIFSignerInfo::_GetSignedAttributes(), and CPKIFSignerInfo::GetSignedAttributes().

void IPKIFHasAttributes::GetUnsignedAttributes ( IPKIFParseAttributes m,
std::vector< CPKIFAttributePtr > &  attr 
) [virtual]

Interface: External

This function parses the objects extensions using the IPKIFParseAttributes parameter, and populates the vector parameter with pointers to the parsed Attribute objects.

Returns:
None

Definition at line 104 of file IPKIFHasAttributes.cpp.

References GetAddedUnsignedAttributes(), GetEncodedUnsignedAttributes(), and IPKIFParseAttributes::ParseAttributes().

Referenced by CPKIFSignerInfo::_GetUnsignedAttributes(), and CPKIFSignerInfo::GetUnsignedAttributes().

void IPKIFHasAttributes::GetAttributes ( IPKIFParseAttributes m,
std::vector< CPKIFAttributePtr > &  attr 
) [virtual]

Interface: External

This function parses the objects extensions using the IPKIFParseAttributes parameter, and populates the vector parameter with pointers to the parsed Attribute objects.

Returns:
None

Definition at line 38 of file IPKIFHasAttributes.cpp.

References GetAddedAttributes(), GetEncodedAttributes(), and IPKIFParseAttributes::ParseAttributes2().

Referenced by CPKIFContentWithAttributes::_GetAttributes(), and CPKIFContentWithAttributes::GetAttributes().

void IPKIFHasAttributes::GetEncodedUnprotectedAttributes ( CPKIFBufferPtr &  buf  )  [virtual]

Interface: External

This function places an unencoded Attributes blob in the buf parameter. This default implementation does absolutely nothing. It has not been declared pure virtual because not all IPKIFHasAttributes derived classes may need to implement it.

Returns:
None

Reimplemented in CPKIFEncryptedData, and CPKIFEnvelopedData.

Definition at line 127 of file IPKIFHasAttributes.cpp.

Referenced by GetUnprotectedAttributes().

void IPKIFHasAttributes::GetEncodedSignedAttributes ( CPKIFBufferPtr &  buf  )  [virtual]

Interface: External

This function places an unencoded Attributes blob in the buf parameter. This default implementation does absolutely nothing. It has not been declared pure virtual because not all IPKIFHasAttributes derived classes may need to implement it.

Returns:
None

Reimplemented in CPKIFSignerInfo.

Definition at line 141 of file IPKIFHasAttributes.cpp.

Referenced by GetSignedAttributes().

void IPKIFHasAttributes::GetEncodedUnsignedAttributes ( CPKIFBufferPtr &  buf  )  [virtual]

Interface: External

This function places an unencoded Attributes blob in the buf parameter. This default implementation does absolutely nothing. It has not been declared pure virtual because not all IPKIFHasAttributes derived classes may need to implement it.

Returns:
None

Reimplemented in CPKIFSignerInfo.

Definition at line 155 of file IPKIFHasAttributes.cpp.

Referenced by GetUnsignedAttributes().

void IPKIFHasAttributes::GetEncodedAttributes ( CPKIFBufferPtr &  buf  )  [virtual]

Interface: External

This function places an unencoded Attributes blob in the buf parameter. This default implementation does absolutely nothing. It has not been declared pure virtual because not all IPKIFHasAttributes derived classes may need to implement it.

Returns:
None

Reimplemented in CPKIFContentWithAttributes.

Definition at line 169 of file IPKIFHasAttributes.cpp.

Referenced by GetAttributes().

void IPKIFHasAttributes::GetAddedUnprotectedAttributes ( std::vector< CPKIFAttributePtr > &  attr  )  [virtual]

Interface: External

This function retrieves unprotected attributes that have been added to the IPKIFHasAttributes object.

Returns:
None

Reimplemented in CPKIFEncryptedData, and CPKIFEnvelopedData.

Definition at line 181 of file IPKIFHasAttributes.cpp.

Referenced by GetUnprotectedAttributes().

void IPKIFHasAttributes::GetAddedSignedAttributes ( std::vector< CPKIFAttributePtr > &  attr  )  [virtual]

Interface: External

This function retrieves signed attributes that have been added to the IPKIFHasAttributes object.

Returns:
None

Reimplemented in CPKIFSignerInfo.

Definition at line 193 of file IPKIFHasAttributes.cpp.

Referenced by GetSignedAttributes().

void IPKIFHasAttributes::GetAddedUnsignedAttributes ( std::vector< CPKIFAttributePtr > &  attr  )  [virtual]

Interface: External This function retrieves unsigned attributes that have been added to the IPKIFHasAttributes object.

Returns:
None

Reimplemented in CPKIFSignerInfo.

Definition at line 204 of file IPKIFHasAttributes.cpp.

Referenced by GetUnsignedAttributes().

void IPKIFHasAttributes::GetAddedAttributes ( std::vector< CPKIFAttributePtr > &  attr  )  [virtual]

Interface: External This function retrieves unsigned attributes that have been added to the IPKIFHasAttributes object.

Returns:
None

Reimplemented in CPKIFContentWithAttributes.

Definition at line 215 of file IPKIFHasAttributes.cpp.

Referenced by GetAttributes().


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

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