Zero Install .NET API 2.20.0
ZeroInstall.Services.Feeds.ITrustManager Interface Reference

Methods for verifying signatures and user trust. More...

Inheritance diagram for ZeroInstall.Services.Feeds.ITrustManager:
ZeroInstall.Services.Feeds.TrustManager

Public Member Functions

ValidSignature CheckTrust (byte[] data, FeedUri uri, string? localPath=null)
 Checks whether a remote feed or catalog file has a a valid and trusted signature. Downloads missing GPG keys for verification and interactively asks the user to approve new keys. More...
 

Detailed Description

Methods for verifying signatures and user trust.

Implementations of this interface are immutable and thread-safe.

Member Function Documentation

◆ CheckTrust()

ValidSignature ZeroInstall.Services.Feeds.ITrustManager.CheckTrust ( byte[]  data,
FeedUri  uri,
string?  localPath = null 
)

Checks whether a remote feed or catalog file has a a valid and trusted signature. Downloads missing GPG keys for verification and interactively asks the user to approve new keys.

Parameters
dataThe data of the file.
uriThe URI the data originally came from.
localPathThe local file path the data came from. Used to locate key files. May be null for in-memory data.
Returns
The first valid and trusted signature found on the feed.
Exceptions
UriFormatExceptionuri is a local file.
OperationCanceledExceptionThe user canceled the task.
WebExceptionA key file could not be downloaded from the internet.
SignatureExceptionNo trusted signature was found.
IOExceptionA problem occurred while writing trust configuration.
UnauthorizedAccessExceptionWrite access to the trust configuration is not permitted.

Implemented in ZeroInstall.Services.Feeds.TrustManager.


The documentation for this interface was generated from the following file: