|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectiaik.tc.tss.impl.java.tcs.eventmgr.TcTcsEventMgrFlatFile
public class TcTcsEventMgrFlatFile
This class implements a flat file event manager. The event information is
stored in a stored measurement log (SML) file described in the configuration
file. The event log has the following format:
[PCR] [measurement hash] [event] [event description]
The PCR is a decimal number, the measurement hash and event are hexadecimal
numbers.
Method Summary | |
---|---|
static TcITcsEventMgr |
getInstance()
|
static TcITcsEventMgr |
getInstance(java.io.File sml)
|
TcTssPcrEvent |
getPcrEvent(long pcrIndex,
long pNumber)
Reads out the desired event using getPcrEventsByPcr(). |
long |
getPcrEventCount(long pcrIndex)
Counts the events of a PCR |
TcTssPcrEvent[] |
getPcrEventLog()
Reads out all PCR events with getPcrEventsByPcr() an then returns it all together. |
TcTssPcrEvent[] |
getPcrEventsByPcr(long pcrIndex,
long firstEvent,
long eventCount)
Reads out the desired events from the log file and returns it as an array of TcTssPcrEvent[]. |
long |
logPcrEvent(TcTssPcrEvent pcrEvent)
Converts the input event to a string and writes it into the log file. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static TcITcsEventMgr getInstance() throws TcTcsException
TcTcsException
public static TcITcsEventMgr getInstance(java.io.File sml) throws TcTcsException
TcTcsException
public TcTssPcrEvent getPcrEvent(long pcrIndex, long pNumber) throws TcTcsException
getPcrEvent
in interface TcITcsEventMgr
TcTcsException
public long getPcrEventCount(long pcrIndex) throws TcTcsException
getPcrEventCount
in interface TcITcsEventMgr
TcTcsException
public TcTssPcrEvent[] getPcrEventsByPcr(long pcrIndex, long firstEvent, long eventCount) throws TcTcsException
getPcrEventsByPcr
in interface TcITcsEventMgr
TcTcsException
public TcTssPcrEvent[] getPcrEventLog() throws TcTcsException
getPcrEventLog
in interface TcITcsEventMgr
TcTcsException
public long logPcrEvent(TcTssPcrEvent pcrEvent) throws TcTcsException
logPcrEvent
in interface TcITcsEventMgr
TcTcsException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |