|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object iaik.tc.tss.impl.java.tcs.kcmgr.TcTcsKeyCache
public abstract class TcTcsKeyCache
Method Summary | |
---|---|
long |
ensureKeyIsLoadedInTpm(long khTcs)
This method takes a TCS key handle and tries to ensure that the corresponding key is loaded in the TPM. |
static TcTcsKeyCache |
getInstance()
This class can only be instantiated once (Singleton). |
abstract 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 java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static TcTcsKeyCache getInstance() throws TcTddlException, TcTpmException, TcTcsException
TcTddlException
TcTpmException
TcTcsException
public abstract boolean swapOutKeyNotParent(long khTpmParent) throws TcTddlException, TcTpmException, TcTcsException
khTpmParent
- The TPM key handle of the parent that should remain in the
TPM.
TcTpmException
- This exception is thrown if accessing the TPM fails.
TcTddlException
TcTcsException
public long ensureKeyIsLoadedInTpm(long khTcs) throws TcTddlException, TcTpmException, TcTcsException
khTcs
- The TCS key handle of the key that should be loaded in the
TPM.
TcTcsException
- This exception is thrown if the provided key handle is
unknown of the key is not loaded in the TPM, and also could
not be loaded from the key cache.
TcTpmException
TcTddlException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |