Package tss
Class TpmDeviceLinux
- java.lang.Object
-
- tss.TpmDevice
-
- tss.TpmDeviceLinux
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class TpmDeviceLinux extends TpmDevice
-
-
Field Summary
-
Fields inherited from class tss.TpmDevice
TpmInfo, TpmInRawMode, TpmLinuxOldUserModeTrm, TpmNoLocalityCtl, TpmNoPowerCtl, TpmPlatformAvailable, TpmSocketConn, TpmSupportsPP, TpmTbsConn, TpmTctiConn, TpmUsesTrm
-
-
Constructor Summary
Constructors Constructor Description TpmDeviceLinux()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes the established connection with the TPM device.boolean
connect()
Establishes a connection with the TPM device.void
dispatchCommand(byte[] command)
Sends the TPM command buffer byte array to the TPMbyte[]
getResponse()
boolean
responseReady()
-
Methods inherited from class tss.TpmDevice
assertPhysicalPresence, implementsPhysicalPresence, localityCtlAvailable, platformAvailable, powerCtl, powerCtlAvailable, powerCycle, powerOff, powerOn, ppOff, ppOn, setLocality
-
-
-
-
Method Detail
-
connect
public boolean connect()
Description copied from class:TpmDevice
Establishes a connection with the TPM device.
-
close
public void close()
Description copied from class:TpmDevice
Closes the established connection with the TPM device.
-
dispatchCommand
public void dispatchCommand(byte[] command)
Description copied from class:TpmDevice
Sends the TPM command buffer byte array to the TPM- Specified by:
dispatchCommand
in classTpmDevice
- Parameters:
command
- TPM command buffer
-
getResponse
public byte[] getResponse()
- Specified by:
getResponse
in classTpmDevice
- Returns:
- TPM response buffer received from the TPM device
-
responseReady
public boolean responseReady()
- Specified by:
responseReady
in classTpmDevice
- Returns:
- Whether the TPM response to the previously issued command is ready
-
-