Public Member Functions | |
DataRetentionLogFile (File logFile) throws IOException | |
int | getEncryptedKeyCount () |
byte[] | getEncryptedKey (int index) |
void | setDecryptionKey (byte[] symkey) |
void | verifyHeader () throws Exception |
void | verifyFooter () throws Exception |
int | getNrOfLogLines () |
void | verifyFirstLogLine () throws Exception |
void | verifyNextLogLine () throws Exception |
DataRetentionLogFileEntry[] | search (long t_out, int d_t) throws Exception |
Package Functions | |
byte[] | readAndDecrpytLogLine (int lineNr) throws Exception |
Private Member Functions | |
void | readFooter () throws IOException |
void | parseHeader () throws IOException |
DataRetentionLogFileEntry[] | getAllLogEntries (int lowInd, int upInd) throws Exception |
long | getToutOfLogEntry (int ind) throws Exception |
byte[] | createIV (int blocksCounter) |
int | getExpectedNrOfLogEntries () |
Private Attributes | |
File | m_File |
DataRetentionLogFileHeader | m_Header |
byte[] | m_SymKey |
byte[] | m_Footer |
FileInputStream | m_LogFileInputStream |
int | m_currentLogVerifyLine |
Static Private Attributes | |
static final int | FOOTER_SIZE = 20 |
mixconfig.tools.dataretention.DataRetentionLogFile.DataRetentionLogFile | ( | File | logFile | ) | throws IOException |
void mixconfig.tools.dataretention.DataRetentionLogFile.readFooter | ( | ) | throws IOException [private] |
void mixconfig.tools.dataretention.DataRetentionLogFile.parseHeader | ( | ) | throws IOException [private] |
int mixconfig.tools.dataretention.DataRetentionLogFile.getEncryptedKeyCount | ( | ) |
byte [] mixconfig.tools.dataretention.DataRetentionLogFile.getEncryptedKey | ( | int | index | ) |
void mixconfig.tools.dataretention.DataRetentionLogFile.setDecryptionKey | ( | byte[] | symkey | ) |
void mixconfig.tools.dataretention.DataRetentionLogFile.verifyHeader | ( | ) | throws Exception |
void mixconfig.tools.dataretention.DataRetentionLogFile.verifyFooter | ( | ) | throws Exception |
int mixconfig.tools.dataretention.DataRetentionLogFile.getNrOfLogLines | ( | ) |
References mixconfig.tools.dataretention.DataRetentionLogFile.FOOTER_SIZE, mixconfig.tools.dataretention.DataRetentionLogFileHeader.getLength(), mixconfig.tools.dataretention.DataRetentionLogFileHeader.getSizeOfLogLine(), mixconfig.tools.dataretention.DataRetentionLogFile.m_File, and mixconfig.tools.dataretention.DataRetentionLogFile.m_Header.
Referenced by mixconfig.tools.DataRetentionLogDecrypt.doVerifyLogFiles(), mixconfig.tools.dataretention.DataRetentionLogFile.readAndDecrpytLogLine(), and mixconfig.tools.dataretention.DataRetentionLogFile.verifyNextLogLine().
void mixconfig.tools.dataretention.DataRetentionLogFile.verifyFirstLogLine | ( | ) | throws Exception |
References mixconfig.tools.dataretention.DataRetentionLogFileHeader.getLength(), mixconfig.tools.dataretention.DataRetentionLogFile.m_currentLogVerifyLine, mixconfig.tools.dataretention.DataRetentionLogFile.m_File, mixconfig.tools.dataretention.DataRetentionLogFile.m_Header, mixconfig.tools.dataretention.DataRetentionLogFile.m_LogFileInputStream, and mixconfig.tools.dataretention.DataRetentionLogFile.verifyNextLogLine().
Referenced by mixconfig.tools.DataRetentionLogDecrypt.doVerifyLogFiles().
void mixconfig.tools.dataretention.DataRetentionLogFile.verifyNextLogLine | ( | ) | throws Exception |
References mixconfig.tools.dataretention.DataRetentionLogFile.createIV(), mixconfig.tools.dataretention.DataRetentionLogFile.getExpectedNrOfLogEntries(), mixconfig.tools.dataretention.DataRetentionLogFileHeader.getNrOfLogEntriesPerLogLine(), mixconfig.tools.dataretention.DataRetentionLogFile.getNrOfLogLines(), mixconfig.tools.dataretention.DataRetentionLogFileHeader.getSizeOfLogEntry(), mixconfig.tools.dataretention.DataRetentionLogFileHeader.getSizeOfLogLine(), mixconfig.tools.dataretention.DataRetentionLogFile.m_currentLogVerifyLine, mixconfig.tools.dataretention.DataRetentionLogFile.m_Header, mixconfig.tools.dataretention.DataRetentionLogFile.m_LogFileInputStream, and mixconfig.tools.dataretention.DataRetentionLogFile.m_SymKey.
Referenced by mixconfig.tools.DataRetentionLogDecrypt.doVerifyLogFiles(), and mixconfig.tools.dataretention.DataRetentionLogFile.verifyFirstLogLine().
DataRetentionLogFileEntry [] mixconfig.tools.dataretention.DataRetentionLogFile.search | ( | long | t_out, | |
int | d_t | |||
) | throws Exception |
References mixconfig.tools.dataretention.DataRetentionLogFile.getAllLogEntries(), mixconfig.tools.dataretention.DataRetentionLogFile.getExpectedNrOfLogEntries(), and mixconfig.tools.dataretention.DataRetentionLogFile.getToutOfLogEntry().
Referenced by mixconfig.tools.DataRetentionLogDecrypt.doLogDecrpyt().
DataRetentionLogFileEntry [] mixconfig.tools.dataretention.DataRetentionLogFile.getAllLogEntries | ( | int | lowInd, | |
int | upInd | |||
) | throws Exception [private] |
References mixconfig.tools.dataretention.DataRetentionLogFileHeader.getNrOfLogEntriesPerLogLine(), mixconfig.tools.dataretention.DataRetentionLogFileHeader.getSizeOfLogEntry(), mixconfig.tools.dataretention.DataRetentionLogFile.m_Header, and mixconfig.tools.dataretention.DataRetentionLogFile.readAndDecrpytLogLine().
Referenced by mixconfig.tools.dataretention.DataRetentionLogFile.search().
byte [] mixconfig.tools.dataretention.DataRetentionLogFile.readAndDecrpytLogLine | ( | int | lineNr | ) | throws Exception [package] |
References mixconfig.tools.dataretention.DataRetentionLogFile.createIV(), mixconfig.tools.dataretention.DataRetentionLogFile.getExpectedNrOfLogEntries(), mixconfig.tools.dataretention.DataRetentionLogFileHeader.getLength(), mixconfig.tools.dataretention.DataRetentionLogFileHeader.getNrOfLogEntriesPerLogLine(), mixconfig.tools.dataretention.DataRetentionLogFile.getNrOfLogLines(), mixconfig.tools.dataretention.DataRetentionLogFileHeader.getSizeOfLogEntry(), mixconfig.tools.dataretention.DataRetentionLogFileHeader.getSizeOfLogLine(), mixconfig.tools.dataretention.DataRetentionLogFile.m_File, mixconfig.tools.dataretention.DataRetentionLogFile.m_Header, and mixconfig.tools.dataretention.DataRetentionLogFile.m_SymKey.
Referenced by mixconfig.tools.dataretention.DataRetentionLogFile.getAllLogEntries(), and mixconfig.tools.dataretention.DataRetentionLogFile.getToutOfLogEntry().
long mixconfig.tools.dataretention.DataRetentionLogFile.getToutOfLogEntry | ( | int | ind | ) | throws Exception [private] |
References mixconfig.tools.dataretention.DataRetentionLogFileHeader.getNrOfLogEntriesPerLogLine(), mixconfig.tools.dataretention.DataRetentionLogFileHeader.getSizeOfLogEntry(), mixconfig.tools.dataretention.DataRetentionLogFile.m_Header, and mixconfig.tools.dataretention.DataRetentionLogFile.readAndDecrpytLogLine().
Referenced by mixconfig.tools.dataretention.DataRetentionLogFile.search().
byte [] mixconfig.tools.dataretention.DataRetentionLogFile.createIV | ( | int | blocksCounter | ) | [private] |
Method creates proper raw initialization vector from value of blocksCounter.
blocksCounter | Actual counter of blocks (aka log lines) |
Referenced by mixconfig.tools.dataretention.DataRetentionLogFile.readAndDecrpytLogLine(), and mixconfig.tools.dataretention.DataRetentionLogFile.verifyNextLogLine().
int mixconfig.tools.dataretention.DataRetentionLogFile.getExpectedNrOfLogEntries | ( | ) | [private] |
References mixconfig.tools.dataretention.DataRetentionLogFile.FOOTER_SIZE, mixconfig.tools.dataretention.DataRetentionLogFileHeader.getLength(), mixconfig.tools.dataretention.DataRetentionLogFileHeader.getNrOfLogEntriesPerLogLine(), mixconfig.tools.dataretention.DataRetentionLogFileHeader.getSizeOfLogEntry(), mixconfig.tools.dataretention.DataRetentionLogFileHeader.getSizeOfLogLine(), mixconfig.tools.dataretention.DataRetentionLogFile.m_File, and mixconfig.tools.dataretention.DataRetentionLogFile.m_Header.
Referenced by mixconfig.tools.dataretention.DataRetentionLogFile.readAndDecrpytLogLine(), mixconfig.tools.dataretention.DataRetentionLogFile.search(), mixconfig.tools.dataretention.DataRetentionLogFile.verifyFooter(), and mixconfig.tools.dataretention.DataRetentionLogFile.verifyNextLogLine().
File mixconfig.tools.dataretention.DataRetentionLogFile.m_File [private] |
Referenced by mixconfig.tools.dataretention.DataRetentionLogFile.DataRetentionLogFile(), mixconfig.tools.dataretention.DataRetentionLogFile.getExpectedNrOfLogEntries(), mixconfig.tools.dataretention.DataRetentionLogFile.getNrOfLogLines(), mixconfig.tools.dataretention.DataRetentionLogFile.parseHeader(), mixconfig.tools.dataretention.DataRetentionLogFile.readAndDecrpytLogLine(), mixconfig.tools.dataretention.DataRetentionLogFile.readFooter(), and mixconfig.tools.dataretention.DataRetentionLogFile.verifyFirstLogLine().
Referenced by mixconfig.tools.dataretention.DataRetentionLogFile.getAllLogEntries(), mixconfig.tools.dataretention.DataRetentionLogFile.getEncryptedKey(), mixconfig.tools.dataretention.DataRetentionLogFile.getEncryptedKeyCount(), mixconfig.tools.dataretention.DataRetentionLogFile.getExpectedNrOfLogEntries(), mixconfig.tools.dataretention.DataRetentionLogFile.getNrOfLogLines(), mixconfig.tools.dataretention.DataRetentionLogFile.getToutOfLogEntry(), mixconfig.tools.dataretention.DataRetentionLogFile.parseHeader(), mixconfig.tools.dataretention.DataRetentionLogFile.readAndDecrpytLogLine(), mixconfig.tools.dataretention.DataRetentionLogFile.verifyFirstLogLine(), mixconfig.tools.dataretention.DataRetentionLogFile.verifyHeader(), and mixconfig.tools.dataretention.DataRetentionLogFile.verifyNextLogLine().
byte [] mixconfig.tools.dataretention.DataRetentionLogFile.m_SymKey [private] |
Referenced by mixconfig.tools.dataretention.DataRetentionLogFile.readAndDecrpytLogLine(), mixconfig.tools.dataretention.DataRetentionLogFile.setDecryptionKey(), mixconfig.tools.dataretention.DataRetentionLogFile.verifyFooter(), mixconfig.tools.dataretention.DataRetentionLogFile.verifyHeader(), and mixconfig.tools.dataretention.DataRetentionLogFile.verifyNextLogLine().
byte [] mixconfig.tools.dataretention.DataRetentionLogFile.m_Footer [private] |
FileInputStream mixconfig.tools.dataretention.DataRetentionLogFile.m_LogFileInputStream [private] |
final int mixconfig.tools.dataretention.DataRetentionLogFile.FOOTER_SIZE = 20 [static, private] |