Autopsy  4.10.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.recentactivity.BinaryCookieReader Class Reference

Inherits Iterable< Cookie >.


class  Cookie
class  CookiePage
class  CookiePageIterator

Public Member Functions

Iterator< Cookieiterator ()

Static Public Member Functions

static BinaryCookieReader initalizeReader (File cookieFile) throws FileNotFoundException, IOException

Private Member Functions

 BinaryCookieReader (File cookieFile, int[] pageSizeArray)

Private Attributes

final File cookieFile
final int[] pageSizeArray

Static Private Attributes

static final String COOKIE_MAGIC = "cook"
static final Logger LOG = Logger.getLogger(BinaryCookieReader.class.getName())
static final int MAC_EPOC_FIX = 978307200
static final int MAGIC_SIZE = 4
static final int PAGE_HEADER_VALUE = 256
static final int SIZEOF_INT_BYTES = 4

Detailed Description

The binary cookie reader encapsulates all the knowledge of how to read the mac .binarycookie files into one class.

The binarycookie file has a header which describes how many pages of cookies and where they are located. Each cookie page has a header and a list of cookies.

Definition at line 43 of file

Constructor & Destructor Documentation

org.sleuthkit.autopsy.recentactivity.BinaryCookieReader.BinaryCookieReader ( File  cookieFile,
int[]  pageSizeArray 

The binary cookie reader encapsulates all the knowledge of how to read the mac .binarycookie files into one class.

Definition at line 63 of file

References org.sleuthkit.autopsy.recentactivity.BinaryCookieReader.cookieFile, and org.sleuthkit.autopsy.recentactivity.BinaryCookieReader.pageSizeArray.

Referenced by org.sleuthkit.autopsy.recentactivity.BinaryCookieReader.initalizeReader().

Member Function Documentation

static BinaryCookieReader org.sleuthkit.autopsy.recentactivity.BinaryCookieReader.initalizeReader ( File  cookieFile) throws FileNotFoundException, IOException

initalizeReader opens the given file, reads the header and checks that the file is a binarycookie file. This function does not keep the file open.

filebinarycookie file
An instance of the reader

Definition at line 78 of file

References org.sleuthkit.autopsy.recentactivity.BinaryCookieReader.BinaryCookieReader(), and org.sleuthkit.autopsy.recentactivity.BinaryCookieReader.MAGIC_SIZE.

Iterator<Cookie> org.sleuthkit.autopsy.recentactivity.BinaryCookieReader.iterator ( )

Creates and returns a instance of CookiePageIterator.


Definition at line 115 of file

Member Data Documentation

final String org.sleuthkit.autopsy.recentactivity.BinaryCookieReader.COOKIE_MAGIC = "cook"

Definition at line 49 of file

final File org.sleuthkit.autopsy.recentactivity.BinaryCookieReader.cookieFile
final Logger org.sleuthkit.autopsy.recentactivity.BinaryCookieReader.LOG = Logger.getLogger(BinaryCookieReader.class.getName())

Definition at line 56 of file

final int org.sleuthkit.autopsy.recentactivity.BinaryCookieReader.MAC_EPOC_FIX = 978307200
final int org.sleuthkit.autopsy.recentactivity.BinaryCookieReader.MAGIC_SIZE = 4
final int org.sleuthkit.autopsy.recentactivity.BinaryCookieReader.PAGE_HEADER_VALUE = 256

Definition at line 47 of file

final int [] org.sleuthkit.autopsy.recentactivity.BinaryCookieReader.pageSizeArray
final int org.sleuthkit.autopsy.recentactivity.BinaryCookieReader.SIZEOF_INT_BYTES = 4

Definition at line 46 of file

The documentation for this class was generated from the following file:

Copyright © 2012-2018 Basis Technology. Generated on: Fri Mar 22 2019
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.