API Reference
CtLogIngestionClient
Reads native Certificate Transparency log entries and returns normalized certificate records.
Inheritance
- Object
- CtLogIngestionClient
Constructors
Methods
public async Task<IReadOnlyList<RawCtEntryPayload>> GetEntriesAsync(String logUrl, Int64 start, Int64 end, TimeSpan timeout, CancellationToken cancellationToken) #Task<IReadOnlyList<RawCtEntryPayload>>Reads raw entry payloads from one CT log range.
Parameters
- logUrl System.String
- start System.Int64
- end System.Int64
- timeout System.TimeSpan
- cancellationToken System.Threading.CancellationToken
public async Task<IReadOnlyList<CtLogDescriptor>> GetLogsAsync(String logListUrl = "https://www.gstatic.com/ct/log_list/v3/log_list.json", Boolean includeRetired = true, Boolean includePending = false, Boolean includeUnknownState = true, CancellationToken cancellationToken = null) #Task<IReadOnlyList<CtLogDescriptor>>Resolves CT logs from a v3/v2 Google-compatible log list.
Parameters
- logListUrl System.String = "https://www.gstatic.com/ct/log_list/v3/log_list.json"
- includeRetired System.Boolean = true
- includePending System.Boolean = false
- includeUnknownState System.Boolean = true
- cancellationToken System.Threading.CancellationToken = null
public Task<CtSignedTreeHead> GetSignedTreeHeadAsync(CtLogDescriptor log, TimeSpan timeout, CancellationToken cancellationToken = null) #Task<CtSignedTreeHead>Reads the current signed tree head for a CT log.
Parameters
- logUrl System.String
- timeout System.TimeSpan
- cancellationToken System.Threading.CancellationToken = null
GetSignedTreeHeadAsync(DomainDetective.CtLogDescriptor log, System.TimeSpan timeout, System.Threading.CancellationToken cancellationToken) #Reads the current signed tree head for a described CT log.
Parameters
- log DomainDetective.CtLogDescriptor
- timeout System.TimeSpan
- cancellationToken System.Threading.CancellationToken
public async Task<Int64> GetTreeSizeAsync(CtLogDescriptor log, TimeSpan timeout, CancellationToken cancellationToken = null) #Task<Int64>Reads the current signed tree head size for a CT log.
Parameters
- logUrl System.String
- timeout System.TimeSpan
- cancellationToken System.Threading.CancellationToken = null
GetTreeSizeAsync(DomainDetective.CtLogDescriptor log, System.TimeSpan timeout, System.Threading.CancellationToken cancellationToken) #Reads the current signed tree head size for a described CT log.
Parameters
- log DomainDetective.CtLogDescriptor
- timeout System.TimeSpan
- cancellationToken System.Threading.CancellationToken
HasStaticCheckpointSignatureForOrigin(System.String[] arg1, System.String arg2) #Parameters
- arg1 System.String[]
- arg2 System.String
public async Task<CtLogIngestionBatch> ReadBatchAsync(CtLogIngestionBatchRequest request, CancellationToken cancellationToken = null) #Task<CtLogIngestionBatch>Reads and decodes one CT log entry batch.
Parameters
- request DomainDetective.CtLogIngestionBatchRequest
- cancellationToken System.Threading.CancellationToken = null
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public Func<String, CancellationToken, Task<String>> HttpGetOverride { get; set; } #Optional HTTP override used by tests and host applications.
SendOverride #HTTP send override used by unit tests to inject controlled responses.
public TimeSpan SignedTreeHeadCacheDuration { get; set; } #Duration for which a successful signed tree head can be reused for the same log URL.
Fields
public const Int32 MaxBatchSize #Maximum number of entries requested from one RFC6962 get-entries call.
8192