Unlock Smart Card PIN via Java (SunPKCS11)

I am trying to unlock or change the output to smart card tokens via java. Writing and reading smart card certificates through SunPKCS11-Wrapper doesn't really matter, but I don't see any C_setPIN or C_initPIN methods in the PKCS11 wrapper class.

So, is there a way to unlock the smart card PIN using SunPKCS11-Wrapper?

+4
source share
1 answer

Sun PKCS # 11 provider is not really suitable for this. But it was implemented on top of the open source shell from IAIK, which may contain what you are looking for, see Link to Session.setPIN () . Note that the link directly to the sun.* Package is strongly deprecated, although the Session class is likely to be hidden somewhere there.

+1
source

All Articles