public class CTLogStoreImpl extends Object implements CTLogStore
| Modifier and Type | Class and Description |
|---|---|
static class |
CTLogStoreImpl.InvalidLogFileException
Thrown when parsing of a log file fails.
|
| Constructor and Description |
|---|
CTLogStoreImpl() |
CTLogStoreImpl(File userLogDir,
File systemLogDir,
CTLogInfo[] fallbackLogs) |
| Modifier and Type | Method and Description |
|---|---|
static CTLogInfo[] |
getDefaultFallbackLogs() |
CTLogInfo |
getKnownLog(byte[] logId) |
static CTLogInfo |
loadLog(File file)
Load a CTLogInfo from a file.
|
static CTLogInfo |
loadLog(InputStream input)
Load a CTLogInfo from a textual representation.
|
public CTLogInfo getKnownLog(byte[] logId)
getKnownLog in interface CTLogStorepublic static CTLogInfo[] getDefaultFallbackLogs()
public static CTLogInfo loadLog(File file) throws FileNotFoundException, CTLogStoreImpl.InvalidLogFileException
FileNotFoundException - if the file does not existCTLogStoreImpl.InvalidLogFileException - if the file could not be parsed properlypublic static CTLogInfo loadLog(InputStream input) throws CTLogStoreImpl.InvalidLogFileException
CTLogStoreImpl.InvalidLogFileException - if the input could not be parsed properly