de.datenzone.tpm4java
Class TddlLinuxDeviceDriver

java.lang.Object
  extended by de.datenzone.tpm4java.TddlLinuxDeviceDriver
All Implemented Interfaces:
TddlDeviceDriver

public class TddlLinuxDeviceDriver
extends java.lang.Object
implements TddlDeviceDriver

Access the TPM chip using a device file (eq. /dev/tpm in Linux).

Author:
martin

Constructor Summary
TddlLinuxDeviceDriver(java.lang.String device)
           
 
Method Summary
protected  void finalize()
           
 int Tddli_Cancel()
          Cancel the current request.
 int Tddli_Close()
          Close the Connection to the TPM.
 int Tddli_GetCapability(int CapArea, int SubCap, int[] pCapBuf)
          Get the capabilities.
 int Tddli_GetStatus(int ReqStatusType, int[] puntStatus)
          Request Status from the TPM.
 int Tddli_Open()
          Open a Connection to the TPM.
 int Tddli_SetCapability(int CapArea, int SubCap, int[] pCapBuf)
          Set the capabilities.
 byte[] Tddli_TransmitData(byte[] cmd)
          Send a binary command to the tpm, and receive the answer.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TddlLinuxDeviceDriver

public TddlLinuxDeviceDriver(java.lang.String device)
Parameters:
device - Name of the device file
Method Detail

Tddli_TransmitData

public byte[] Tddli_TransmitData(byte[] cmd)
                          throws java.io.IOException
Send a binary command to the tpm, and receive the answer.

Specified by:
Tddli_TransmitData in interface TddlDeviceDriver
Parameters:
cmd -
Returns:
the reply the TPM gave
Throws:
java.io.IOException

Tddli_GetStatus

public int Tddli_GetStatus(int ReqStatusType,
                           int[] puntStatus)
Description copied from interface: TddlDeviceDriver
Request Status from the TPM.

Specified by:
Tddli_GetStatus in interface TddlDeviceDriver
Returns:
See Also:
TddlDeviceDriver.Tddli_GetStatus(int, int[])

Tddli_Cancel

public int Tddli_Cancel()
Description copied from interface: TddlDeviceDriver
Cancel the current request.

Specified by:
Tddli_Cancel in interface TddlDeviceDriver
Returns:
The return code from the TPM.
See Also:
TddlDeviceDriver.Tddli_Cancel()

Tddli_SetCapability

public int Tddli_SetCapability(int CapArea,
                               int SubCap,
                               int[] pCapBuf)
Description copied from interface: TddlDeviceDriver
Set the capabilities.

Specified by:
Tddli_SetCapability in interface TddlDeviceDriver
Returns:
See Also:
TddlDeviceDriver.Tddli_SetCapability(int, int, int[])

Tddli_GetCapability

public int Tddli_GetCapability(int CapArea,
                               int SubCap,
                               int[] pCapBuf)
Description copied from interface: TddlDeviceDriver
Get the capabilities.

Specified by:
Tddli_GetCapability in interface TddlDeviceDriver
Returns:
See Also:
TddlDeviceDriver.Tddli_GetCapability(int, int, int[])

Tddli_Open

public int Tddli_Open()
Description copied from interface: TddlDeviceDriver
Open a Connection to the TPM.

Specified by:
Tddli_Open in interface TddlDeviceDriver
Returns:
The return code from the TPM.
See Also:
TddlDeviceDriver.Tddli_Open()

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

Tddli_Close

public int Tddli_Close()
Description copied from interface: TddlDeviceDriver
Close the Connection to the TPM.

Specified by:
Tddli_Close in interface TddlDeviceDriver
Returns:
The return code from the TPM.
See Also:
TddlDeviceDriver.Tddli_Close()


http://tpm4java.datenzone.de/