public class TpmDeviceTcp extends TpmDeviceBase
| Constructor and Description |
|---|
TpmDeviceTcp(String hostName,
int port) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
dispatchCommand(byte[] commandBuffer)
Send the TPM-formatted command byte-array to the TPM
|
byte[] |
getResponse()
Get the response from the TPM.
|
void |
powerCycle()
Power-cycle the TPM (typically only implemented for simulator).
|
void |
powerOff()
Power-off the TPM (typically only implemented for simulator).
|
void |
powerOn()
Power-on the TPM (typically only implemented for simulator).
|
boolean |
responseReady()
Is the TPM response ready?
|
void |
sendCmdAndGetAck(Socket s,
tss.TpmDeviceTcp.TcpTpmCommands comm) |
void |
setLocality(int locality)
Send the commands that follow at the specified locality
|
pPOff, pPOnpublic TpmDeviceTcp(String hostName, int port)
public void dispatchCommand(byte[] commandBuffer)
TpmDeviceBasedispatchCommand in class TpmDeviceBasecommandBuffer - The command bytespublic byte[] getResponse()
TpmDeviceBasegetResponse in class TpmDeviceBasepublic boolean responseReady()
TpmDeviceBasepublic void powerCycle()
TpmDeviceBasepowerCycle in class TpmDeviceBasepublic void powerOff()
TpmDeviceBasepowerOff in class TpmDeviceBasepublic void powerOn()
TpmDeviceBasepowerOn in class TpmDeviceBasepublic void setLocality(int locality)
TpmDeviceBasesetLocality in class TpmDeviceBaselocality - Locality (zero to 4)public void sendCmdAndGetAck(Socket s, tss.TpmDeviceTcp.TcpTpmCommands comm)
public void close()
throws IOException
IOExceptionCopyright © 2017. All rights reserved.