C# Class Tpm2Lib.ObjectContextManager

Mostrar archivo Open project: Microsoft/TSS.MSR Class Usage Examples

Public Properties

Property Type Description
ObjectContexts List

Public Methods

Method Description
GetUseCount ( ) : System.UInt64

UseCount enables LRU key evictiction.

Remove ( ObjectContext c ) : void
RemoveAll ( ) : void
RemoveAll ( Tbs owner ) : void

Remove all contexts associated with a client (to support client disconnect).

Private Methods

Method Description
CreateObjectContext ( Tbs owner, TpmHandle tpmHandle ) : ObjectContext
GetBestEvictionCandidate ( Tbs neededSlot, ObjectContext neededEntities ) : ObjectContext

Gets the best eviction candidate for entities of given type. May return NULL.

GetContext ( Tbs caller, TpmHandle callerHandle ) : ObjectContext
GetFreeHandle ( Tbs owner, TpmHandle tpmHandle ) : uint

This TBS returns a random handle value in the desired handle range (ugh).

NumFreeSlots ( Tbs neededSlot ) : int
ObjectContextManager ( ) : System
OwnerHandleInUse ( Tbs owner, uint ownerHandle ) : bool
TbsHandleFromTpmHandle ( uint tpmHandle ) : uint

Find the assiged TBS handle for a loaded TPM entity.

Method Details

GetUseCount() public method

UseCount enables LRU key evictiction.
public GetUseCount ( ) : System.UInt64
return System.UInt64

Remove() public method

public Remove ( ObjectContext c ) : void
c ObjectContext
return void

RemoveAll() public method

public RemoveAll ( ) : void
return void

RemoveAll() public method

Remove all contexts associated with a client (to support client disconnect).
public RemoveAll ( Tbs owner ) : void
owner Tbs
return void

Property Details

ObjectContexts public_oe property

public List ObjectContexts
return List