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

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

public class TcTcsKeyCacheTpm12
extends TcTcsKeyCache


Constructor Summary
TcTcsKeyCacheTpm12()
           
 
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

TcTcsKeyCacheTpm12

public TcTcsKeyCacheTpm12()
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