from Url
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.
Return
An instance of RetrievedDocument, wrapped in a Result monad, if successful. A failed Result wrapping the thrown Throwable in case of an error.
Parameters
document Url
The URL where to retrieve the document from.
loader
An instance of CsafLoader.
provider Role
An instance of a Role. This is needed in order to correctly validate the document according to the role where it is hosted (e.g., CSAFTrustedProviderRole).