How obtain additional information about token

11/11/2016 5:46:41 PM
Gravatar
Total Posts 10

How obtain additional information about token


Hello,

is there a possibility to obtain additional information from the token? E.g. User password retries remaining ?

12/4/2016 8:51:57 PM
Gravatar
Total Posts 30

Re: How obtain additional information about token

Hi,

check the TokenInfo structure.

It contains all info you need

 

1/10/2017 2:48:41 PM
Gravatar
Total Posts 10

Re: How obtain additional information about token

Sorry, but TokenInfo does not have property password retries remaining. 

So where can I find it?

1/17/2017 10:44:44 AM
Gravatar
Total Posts 30

Re: How obtain additional information about token

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

 

2/14/2017 10:45:25 AM
Gravatar
Total Posts 10

Re: How obtain additional information about token

Yes, but property of bitmask is true or false. I need the result as integer  - how many attempts left. Thanx for your answer

4/24/2017 2:11:09 PM
Gravatar
Total Posts 10

Re: How obtain additional information about token

No other idea? Thanx