iaik.tc.tss.impl.java.tcs.kcmgr
Class TcTcsKeyCacheTpm11

java.lang.Object
  extended by iaik.tc.tss.impl.java.tcs.kcmgr.TcTcsKeyCache
      extended by iaik.tc.tss.impl.java.tcs.kcmgr.TcTcsKeyCacheTpm11

public class TcTcsKeyCacheTpm11
extends TcTcsKeyCache


Constructor Summary
TcTcsKeyCacheTpm11()
           
 
Method Summary
 boolean swapOutKeyNotParent(long khTpmParent)
          This method frees TPM space by swapping out the first key that does not match the provided parent key handle.
 
Methods inherited from class iaik.tc.tss.impl.java.tcs.kcmgr.TcTcsKeyCache
ensureKeyIsLoadedInTpm, getInstance
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TcTcsKeyCacheTpm11

public TcTcsKeyCacheTpm11()
Method Detail

swapOutKeyNotParent

public boolean swapOutKeyNotParent(long khTpmParent)
                            throws TcTddlException,
                                   TcTpmException,
                                   TcTcsException
This method frees TPM space by swapping out the first key that does not match the provided parent key handle. This allows the caller to specify a key that has to remain inside the TPM.

Specified by:
swapOutKeyNotParent in class TcTcsKeyCache
Parameters:
khTpmParent - The TPM key handle of the parent that should remain in the TPM.
Returns:
Returns true if space could be freed (by swapping out keys), false otherwise.
Throws:
TcTpmException - This exception is thrown if accessing the TPM fails.
TcTddlException
TcTcsException