from Url Async
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.
Return
An instance of RetrievedDocument, wrapped in a CompletableFuture upon success. In case of an error, the future wraps the thrown Exception.
Parameters
document Url
The URL from which the CSAF document will be retrieved.
loader
An instance of CsafLoader used for HTTP data retrieval and processing.
provider Role
An instance of Role, specifying the validation role to be applied to the retrieved document.