Package org.conscrypt.ct
Class CTLogStoreImpl
- java.lang.Object
-
- org.conscrypt.ct.CTLogStoreImpl
-
- All Implemented Interfaces:
CTLogStore
public class CTLogStoreImpl extends Object implements CTLogStore
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCTLogStoreImpl.InvalidLogFileExceptionThrown when parsing of a log file fails.
-
Constructor Summary
Constructors Constructor Description CTLogStoreImpl()CTLogStoreImpl(File userLogDir, File systemLogDir, CTLogInfo[] fallbackLogs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CTLogInfo[]getDefaultFallbackLogs()CTLogInfogetKnownLog(byte[] logId)static CTLogInfoloadLog(File file)Load a CTLogInfo from a file.static CTLogInfoloadLog(InputStream input)Load a CTLogInfo from a textual representation.
-
-
-
Method Detail
-
getKnownLog
public CTLogInfo getKnownLog(byte[] logId)
- Specified by:
getKnownLogin interfaceCTLogStore
-
getDefaultFallbackLogs
public static CTLogInfo[] getDefaultFallbackLogs()
-
loadLog
public static CTLogInfo loadLog(File file) throws FileNotFoundException, CTLogStoreImpl.InvalidLogFileException
Load a CTLogInfo from a file.- Returns:
- a CTLogInfo or null if the file is empty
- Throws:
FileNotFoundException- if the file does not existCTLogStoreImpl.InvalidLogFileException- if the file could not be parsed properly
-
loadLog
public static CTLogInfo loadLog(InputStream input) throws CTLogStoreImpl.InvalidLogFileException
Load a CTLogInfo from a textual representation.- Returns:
- a CTLogInfo or null if the input is empty
- Throws:
CTLogStoreImpl.InvalidLogFileException- if the input could not be parsed properly
-
-