Eddy Nigg (StartCom Ltd.) wrote:
Does anybody know if and which parameters might be obtained by the window.crypto functions and smart cards? For reference see this page: http://developer.mozilla.org/en/docs/JavaScript_crypto#Handling_Smart_Card_Events Specifically I'd like to know if there is a function to check if a smart card was already inserted before accessing a certain page. Is it possible to obtain a smart card ID or other properties of the smart card device (as loaded by NSS)?
No, the API does not give you direct information about how many or which tokens are installed. Typically that information is gleened by doing a 'request/not require' client auth. The certificate would indicate the presence of the correct smart card (this presumes the server and the card issuer are related).

bob

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to