Clock Objects

Clock objects represent real-time clocks that exist on the device. This represents the same clock source as the utcTime field in the CK_TOKEN_INFO structure.

Table 1: Clock Object Attributes

Attribute

Data Type

Meaning

CKA_VALUE CK_CHAR[16]

Current time as a character-string of length 16, represented in the format YYYYMMDDhhmmss00 (the last two reserved characters are set to 0).

The CKA_VALUE attribute may be set using the C_SetAttributeValue function if the object exists in the Admin Token and the session is in RW User Mode. 

C_SetAttributeValue returns the error CKR_USER_NOT_LOGGED_IN to indicate that a different user type is required to set the value.

One object of this type is automatically created in the Admin token.