|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectiaik.tc.tss.impl.java.tcs.authmgr.TcTcsAuthCache
public abstract class TcTcsAuthCache
Method Summary | |
---|---|
void |
addActiveAuthSession(long authHandle,
TcTpmNonce nonceEven)
This method is called if a new auth session was established. |
abstract java.lang.String |
cachedAuthSessionsToString()
This method is intended for debugging. |
abstract void |
ensureAuthsAreLoadedInTpm(TcTcsAuth[] auths)
This method is called by TCSI methods that use auth sessions. |
abstract void |
evictAllAuthSessions()
This method evicts all auth sessions from the TPM. |
static TcTcsAuthCache |
getInstance()
This class can only be instantiated once (Singleton). |
void |
removeActiveAuthSession(TcTcsAuth auth)
This method is called if an auth session is no longer active (terminated intentionally or because of an error). |
abstract void |
swapOutAuth(long[] keepHandles)
This method swaps out an auth sessions from the TPM. |
void |
trackActiveAuthSession(TcTcsAuth inAuth,
TcTcsAuth outAuth)
This method is called if an auth is used to authorize more than one TPM command. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static TcTcsAuthCache getInstance() throws TcTddlException, TcTpmException, TcTcsException
TcTddlException
TcTpmException
TcTcsException
public abstract void evictAllAuthSessions() throws TcTddlException, TcTpmException
Note: This functionality is also implemented in TcTddl
. Changes
here should be applied in TcTddl too.
TcTddlException
TcTpmException
public abstract void swapOutAuth(long[] keepHandles) throws TcTddlException, TcTpmException, TcTcsException
keepHandles
- When swapping out an auth session, this method avoids to swap out the
sessions with the handles specified by notHandles. If it does not matter which session
to swap out, simply pass an empty array.
TcTddlException
TcTpmException
TcTcsException
public abstract void ensureAuthsAreLoadedInTpm(TcTcsAuth[] auths) throws TcTddlException, TcTpmException, TcTcsException
auths
- The auth sessions that have to be present in the TPM.
TcTddlException
TcTpmException
TcTcsException
public abstract java.lang.String cachedAuthSessionsToString() throws TcTddlException, TcTpmException
TcTddlException
TcTpmException
public void addActiveAuthSession(long authHandle, TcTpmNonce nonceEven)
authHandle
- The new auth session.nonceEven
- The even nonce generated by the TPM.public void removeActiveAuthSession(TcTcsAuth auth)
auth
- The auth session to be removed.public void trackActiveAuthSession(TcTcsAuth inAuth, TcTcsAuth outAuth)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |