Companion

object Companion

Functions

Link copied to clipboard

Load RetrievedDocument from JSON-yielding InputStream.

Load RetrievedDocument from JSON string.

Link copied to clipboard
suspend fun fromUrl(documentUrl: String, loader: CsafLoader, providerRole: Role): Result<RetrievedDocument>

Retrieves a specific CSAF document from a given URL, validating it according to the provided role.

Link copied to clipboard
fun fromUrlAsync(documentUrl: String, loader: CsafLoader = lazyLoader, providerRole: Role = CSAFPublisherRole): CompletableFuture<RetrievedDocument>

Retrieves a specific CSAF document asynchronously from a given URL, validating it according to the provided role.