Class TcTpmCmdEviction

  extended by iaik.tc.tss.impl.java.tcs.pbg.TcTpmCmdCommon
      extended by iaik.tc.tss.impl.java.tcs.pbg.TcTpmCmdEviction

public class TcTpmCmdEviction
extends TcTpmCmdCommon

The TPM has numerous resources held inside of the TPM that may need eviction. The need for eviction occurs when the number or resources in use by the TPM exceed the available space. For resources that are hard to reload (i.e. keys tied to PCR values) the outside entity should first perform a context save before evicting items. In version 1.1 there were separate commands to evict separate resource types. This new command set uses the resource types defined for context saving and creates a generic command that will evict all resource types.

Constructor Summary
Method Summary
static java.lang.Object[] TpmFlushSpecific(TcIStreamDest dest, long handle, long resourceType)
          This command flushes a handle of the given resource type from the TPM.
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public TcTpmCmdEviction()
Method Detail


public static java.lang.Object[] TpmFlushSpecific(TcIStreamDest dest,
                                                  long handle,
                                                  long resourceType)
                                           throws TcTddlException,
This command flushes a handle of the given resource type from the TPM. The resources associated with the given handle are freed.

dest - The destination where the byte stream is written to.
handle - The handle of the item to flush
resourceType - The type of resource that is being flushed
The returned Object[] holds the following elements:
  • 0 ... TPM return code (Long)
TcTpmException - This exception indicates that a TPM error has occurred. The specific error code id held by the exception.
TPM 1.2 Spec, page number: