问题
I'm reading up on my upcoming project that involves using my laptop's TPM on authentication software written in Java.
A few entries came out on Google, but most of them are quite old, and I have no idea which is the best tutorial. So I'd like to know what's the recommended API to use, and where is the best place to get information from.
Thanks.
回答1:
To communicate with a TPM you need a Trusted Software Stack (TSS). There are two major freely available TSS: TrouSerS and jTSS.
jTSS is written in Java, whereas TrouSerS is written in C. When using the pure Java jTSS you don't need jTSSWrapper. The wrapper is only needed when you want to access TrouSerS TSS through Java.
The jTpm Tools provide some command line tools to interact with the TPM. When looking at the source code of the tools you can figure out how to use jTSS API.
For more stuff related to Trusted Computing and Java have a look at http://trustedjava.sourceforge.net/
There's also a JSR that tries to define a high-level Java API for Trusted Computing, you can find the information as well as a reference implementation at http://jsr321.java.net/ (including public readable SVN repo).
回答2:
start reading here.
http://trustedjava.sourceforge.net/
There is any Information you need. To access your TPM (I would suggest you to do first tests with the famous TPM Emulator from http://tpm-emulator.berlios.de/)
In Java you need the Package jTSSWrapper. Just look at the test-code insight the package to get a very first impression.
来源:https://stackoverflow.com/questions/7127801/information-needed-to-utilize-tpm-in-java