iaik.tc.tss.impl.java.tddl
Class TcTddlSocket

java.lang.Object
  extended by iaik.tc.tss.impl.java.tddl.TcTddl
      extended by iaik.tc.tss.impl.java.tddl.TcTddlSocket
All Implemented Interfaces:
TcIStreamDest

public class TcTddlSocket
extends TcTddl

This class implements the TDDL layer to connect to TPM accessibly via a TCP/IP socket. It is designed to be used with IBM's software TPM.


Method Summary
 void cancel()
          This method is not implemented by this TDDL.
 void close()
          This method closes the previously opened TPM device.
 void getCapability()
          This method is not implemented by this TDDL.
 void getStatus()
          This method is not implemented by this TDDL.
 boolean isOpen()
          This method returns true if the TPM device is already open, false otherwise.
 void open()
          This method opens the TPM device.
 void powerManagement()
          This method is not implemented by this TDDL.
 void powerManagementControl()
          This method is not implemented by this TDDL.
 void setCapability()
          This method is not implemented by this TDDL.
 void setStatus()
          This method is not implemented by this TDDL.
 TcBlobData transmitData(TcBlobData command)
          This sends the given byte blob to the TPM.
 
Methods inherited from class iaik.tc.tss.impl.java.tddl.TcTddl
getInstance
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

open

public void open()
          throws TcTddlException
This method opens the TPM device. IBM's implementation always closes the connection after each command, so this opens and closes an empty session to test if the server can be reached.

Specified by:
open in class TcTddl
Throws:
TcTddlException - This exception is thrown if no TPM device could not be opened.

isOpen

public boolean isOpen()
This method returns true if the TPM device is already open, false otherwise.

Specified by:
isOpen in class TcTddl

close

public void close()
           throws TcTddlException
This method closes the previously opened TPM device.

Specified by:
close in class TcTddl
Throws:
TcTddlException

transmitData

public TcBlobData transmitData(TcBlobData command)
                        throws TcTddlException
This sends the given byte blob to the TPM. IBM's implementation alway closes the connection after each command, so we need to open a new one for each transmission.

Parameters:
command - The command blob to the sent to the TPM.
Throws:
TcTddlException - This exception is thrown if writing to or reading from the TPM device failed.

cancel

public void cancel()
            throws TcTddlException
This method is not implemented by this TDDL.

Specified by:
cancel in class TcTddl
Throws:
TcTddlException

getCapability

public void getCapability()
                   throws TcTddlException
This method is not implemented by this TDDL.

Specified by:
getCapability in class TcTddl
Throws:
TcTddlException

setCapability

public void setCapability()
                   throws TcTddlException
This method is not implemented by this TDDL.

Specified by:
setCapability in class TcTddl
Throws:
TcTddlException

getStatus

public void getStatus()
               throws TcTddlException
This method is not implemented by this TDDL.

Specified by:
getStatus in class TcTddl
Throws:
TcTddlException

setStatus

public void setStatus()
               throws TcTddlException
This method is not implemented by this TDDL.

Specified by:
setStatus in class TcTddl
Throws:
TcTddlException

powerManagement

public void powerManagement()
                     throws TcTddlException
This method is not implemented by this TDDL.

Specified by:
powerManagement in class TcTddl
Throws:
TcTddlException

powerManagementControl

public void powerManagementControl()
                            throws TcTddlException
This method is not implemented by this TDDL.

Specified by:
powerManagementControl in class TcTddl
Throws:
TcTddlException