iaik.tc.tss.impl.java.tcs.pbg
Class TcTpmCmdAdminTesting

java.lang.Object
  extended by iaik.tc.tss.impl.java.tcs.pbg.TcTpmCmdCommon
      extended by iaik.tc.tss.impl.java.tcs.pbg.TcTpmCmdAdminTesting

public class TcTpmCmdAdminTesting
extends TcTpmCmdCommon


Constructor Summary
TcTpmCmdAdminTesting()
           
 
Method Summary
static java.lang.Object[] TpmContinueSelfTest(TcIStreamDest dest)
          After initialization (TpmInit) the TPM performs a limited self-test ensuring that a limited set of TPM commands will perform properly.
static java.lang.Object[] TpmGetTestResult(TcIStreamDest dest)
          TpmGetTestResult provides manufacturer specific information regarding the results of the self-test.
static java.lang.Object[] TpmSelfTestFull(TcIStreamDest dest)
          This command tests all of the TPM capabilities.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TcTpmCmdAdminTesting

public TcTpmCmdAdminTesting()
Method Detail

TpmSelfTestFull

public static java.lang.Object[] TpmSelfTestFull(TcIStreamDest dest)
                                          throws TcTddlException,
                                                 TcTpmException
This command tests all of the TPM capabilities. Unlike TpmContinueSelfTest, which may optionally return immediately and then perform the tests, TPM_SelfTestFull always performs the tests and then returns success or failure.

Parameters:
dest - The destination where the byte stream is written to.
Throws:
TcTpmException - This exception indicates that a TPM error has occurred. The specific error code id held by the exception.
TcTddlException
TPM 1.2 Spec, page number:
11

TpmContinueSelfTest

public static java.lang.Object[] TpmContinueSelfTest(TcIStreamDest dest)
                                              throws TcTddlException,
                                                     TcTpmException
After initialization (TpmInit) the TPM performs a limited self-test ensuring that a limited set of TPM commands will perform properly. This limitation allows the TPM to become operational in a small amount of time. The command set available after this limited self-test includes TpmExtend (allowing measurements at an early stage of boot-up), TpmStartup, TpmContinueSelftest, TpmSelfTestFull and TpmGetCapability. The TpmContinueSelftest command informs the TPM that it should complete the self-test of all further TPM functions. The TPM may return success immediately and then perform the self-test, or it may perform the self-test and then return success or failure.

Parameters:
dest - The destination where the byte stream is written to.
Throws:
TcTpmException - This exception indicates that a TPM error has occurred. The specific error code id held by the exception.
TcTddlException
TPM 1.2 Spec, page number:
12

TpmGetTestResult

public static java.lang.Object[] TpmGetTestResult(TcIStreamDest dest)
                                           throws TcTddlException,
                                                  TcTpmException
TpmGetTestResult provides manufacturer specific information regarding the results of the self-test. This command will work when the TPM is in limited operation mode or self-test failure mode. The reason for allowing this command to operate in the failure mode is to allow TPM manufacturers to obtain diagnostic information.

Parameters:
dest - The destination where the byte stream is written to.
Returns:
TcBlobData Vendor specific test result.
Throws:
TcTpmException - This exception indicates that a TPM error has occurred. The specific error code id held by the exception.
TcTddlException
TPM 1.2 Spec, page number:
14