Hello,
is there a possibility to obtain additional information from the token? E.g. User password retries remaining ?
Hi,
check the TokenInfo structure.
It contains all info you need
Sorry, but TokenInfo does not have property password retries remaining.
So where can I find it?
You can use TokenInfo.Flags property.
It is a bitmask, a bit flags, indicating capabilities and status of the device.
This flags property contains also the PIN status as defined below:
CKF_SO_PIN_COUNT_LOW CKF_SO_PIN_FINAL_TRY CKF_SO_PIN_LOCKED CKF_SO_PIN_TO_BE_CHANGED CKF_USER_PIN_COUNT_LOW CKF_USER_PIN_FINAL_TRY CKF_USER_PIN_INITIALIZED CKF_USER_PIN_LOCKED CKF_USER_PIN_TO_BE_CHANGED
Yes, but property of bitmask is true or false. I need the result as integer - how many attempts left. Thanx for your answer
No other idea? Thanx
Hi! Did you find any solution? I'm going nuts trying to find any.
Thanks
The class TokenInfo has all info about the token:
FirmwareVersion
FreePrivateMemory
FreePublicMemory
HardwareVersion
Label
ManufacturerID
MaxPINLen
MinPINLen
Model
SerialNumber
TotalPrivateMemory
TotalPublicMemory
Thanks Ugo! Yes, but it hasnt info about pin tries left, i cant find it anywhere. At least accesing by TokenInfo.