PinLastUpdated Property
PinLastUpdated
The date the PIN was last updated. If this is not being used, it will be null.
C#
public Nullable<DateTime> PinLastUpdated { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
Remarks
To set this property to the current time, use DateTime.UtcNow
.
var adminData = new AdminData();
adminData.PinLastUpdated = DateTime.UtcNow;
It is possible to set the time to any time at all (Jan. 1, 2000, if you want), but it is likely that you will never need to set it to anything other than the current time.
If you get the ADMIN DATA out of a YubiKey, it will be encoded. This class will decode it and set this property to the time specified in the encoding. It is possible the date is not encoded, in which case this will be null.
Upon construction, the PinLastUpdated is null. If you leave it null
or set it to null, then when the data is encoded, no
PinLastUpdated
value will be included in the encoding.