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

4/16/2019 8:32:04 PM
Gravatar
Total Posts 2

Re: How obtain additional information about token

Hi! Did you find any solution? I'm going nuts trying to find any.

Thanks

4/16/2019 8:41:19 PM
Gravatar
Total Posts 300
Ugo Chirico http://www.ugochirico.com

Re: How obtain additional information about token

The class TokenInfo has all info about the token:

FirmwareVersion

FreePrivateMemory

FreePublicMemory

HardwareVersion

Label

ManufacturerID

MaxPINLen

MinPINLen

Model

SerialNumber

TotalPrivateMemory

TotalPublicMemory

4/16/2019 9:10:38 PM
Gravatar
Total Posts 2

Re: How obtain additional information about token

Thanks Ugo! Yes, but it hasnt info about pin tries left, i cant find it anywhere. At least accesing by TokenInfo.