#include <SigningTimeAttribute.h>
TSP-enforcing: No
Definition at line 30 of file SigningTimeAttribute.h.
Public Member Functions | |
CPKIFSigningTimeAttribute () | |
CPKIFSigningTimeAttribute (const CPKIFBufferPtr &buf) | |
~CPKIFSigningTimeAttribute () | |
CPKIFOIDPtr | GetOID () const |
void | GetValues (CPKIFBufferList &values) const |
CPKIFTimePtr | GetTime () const |
void | SetTime (CPKIFTimePtr &time) |
void | SetUseUtcTimeIfPossible (bool bUseUtcIfPossible) |
bool | GetUseUtcTimeIfPossible () |
Static Public Attributes | |
static char | extOID [] = "1.2.840.113549.1.9.5" |
CPKIFSigningTimeAttribute::CPKIFSigningTimeAttribute | ( | ) |
Interface: External
Default constructor.
Definition at line 92 of file SigningTimeAttribute.cpp.
References LOG_STRING_DEBUG, and TOOLKIT_MESSAGE_ASN.
CPKIFSigningTimeAttribute::CPKIFSigningTimeAttribute | ( | const CPKIFBufferPtr & | buf | ) |
Interface: External
This constructor is called from CPKIFSigningTimeAttributeFactory::create().
buf | [in] The raw attribute to convert to a CPKIFSigningTimeAttribute. |
Definition at line 125 of file SigningTimeAttribute.cpp.
References LOG_STRING_DEBUG, and TOOLKIT_MESSAGE_ASN.
CPKIFSigningTimeAttribute::~CPKIFSigningTimeAttribute | ( | ) |
Interface: External
Destroys an instance of CPKIFSigningTimeAttribute object.
Definition at line 143 of file SigningTimeAttribute.cpp.
References LOG_STRING_DEBUG, and TOOLKIT_MESSAGE_ASN.
CPKIFOIDPtr CPKIFSigningTimeAttribute::GetOID | ( | ) | const [virtual] |
Interface: External
This function returns the OID associated with this type of CMS attribute.
Reimplemented from CPKIFAttribute.
Definition at line 191 of file SigningTimeAttribute.cpp.
References g_signingTimeAttribute.
void CPKIFSigningTimeAttribute::GetValues | ( | CPKIFBufferList & | values | ) | const [virtual] |
Interface: External
This function returns the raw, encoded signing time attribute value.
values | [out] The list of values stored by the attribute. |
Reimplemented from CPKIFAttribute.
Definition at line 202 of file SigningTimeAttribute.cpp.
References CPKIFASNWrapper< T >::Encode(), LOG_STRING_DEBUG, and TOOLKIT_MESSAGE_ASN.
CPKIFTimePtr CPKIFSigningTimeAttribute::GetTime | ( | ) | const |
Interface: External
Th function is used to get the time value conveyed by the CPKIFSigningTImeAttribute object.
Definition at line 157 of file SigningTimeAttribute.cpp.
void CPKIFSigningTimeAttribute::SetTime | ( | CPKIFTimePtr & | time | ) |
Interface: External
This function is used to set the time value conveyed by the CPKIFSigningTImeAttribute object.
CPKIFMessageException(COMMON_INVALID_INPUT) |
time | [in] The time to set. |
Definition at line 170 of file SigningTimeAttribute.cpp.
References COMMON_INVALID_INPUT, LOG_STRING_DEBUG, TOOLKIT_MESSAGE, and TOOLKIT_MESSAGE_ASN.
void CPKIFSigningTimeAttribute::SetUseUtcTimeIfPossible | ( | bool | bUseUtcIfPossible | ) |
Interface: External
This function tells the class to use UTC time when possible
bUseUtcIfPossible | [out] If true is passed in UTC time will be used when possible |
Definition at line 249 of file SigningTimeAttribute.cpp.
bool CPKIFSigningTimeAttribute::GetUseUtcTimeIfPossible | ( | ) |
Interface: External
This function indicates if UTC time will be used when possible
Definition at line 262 of file SigningTimeAttribute.cpp.
char CPKIFSigningTimeAttribute::extOID = "1.2.840.113549.1.9.5" [static] |
Definition at line 37 of file SigningTimeAttribute.h.
Referenced by CPKIFSigningTimeAttributeFactory::refOID().