Csaf Loader
A helper class with async functions to retrieve certain kinds of CSAF-related data.
Parameters
engine
An instance of HttpClientEngine for HTTP(S) data retrieval via Ktor. Defaults to defaultHttpClientEngine.
Constructors
Functions
Link copied to clipboard
suspend fun fetchAggregator(url: String, ctx: RetrievalContext? = null): <Error class: unknown class><<Error class: unknown class>>
Fetch and parse an aggregator JSON document from a given URL.
Link copied to clipboard
suspend fun fetchDocument(url: String, ctx: RetrievalContext): <Error class: unknown class><<Error class: unknown class>>
Fetch and parse a CSAF JSON document from a given URL.
Link copied to clipboard
suspend fun fetchProvider(url: String, ctx: RetrievalContext? = null): <Error class: unknown class><<Error class: unknown class>>
Fetch and parse a provider JSON document from a given URL.
Link copied to clipboard
suspend fun fetchROLIEFeed(url: String, responseCallback: (<Error class: unknown class>) -> Unit? = null): <Error class: unknown class><<Error class: unknown class>>
Fetch and parse a ROLE feed from a given URL.
Link copied to clipboard
suspend fun fetchSecurityTxtCsafUrls(domain: String, responseCallback: (<Error class: unknown class>) -> Unit? = null): <Error class: unknown class>
Fetch the CSAF fields from a security.txt as specified in CSAF 7.1.8.