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

java.lang.Object
  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
TcTpmCmdEviction()
           
 
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

TcTpmCmdEviction

public TcTpmCmdEviction()
Method Detail

TpmFlushSpecific

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

Parameters:
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
Returns:
The returned Object[] holds the following elements:
  • 0 ... TPM return code (Long)
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:
227