Table of Contents

Interface ITrustManager

Namespace
ZeroInstall.Services.Feeds
Assembly
ZeroInstall.Services.dll

Methods for verifying signatures and user trust.

public interface ITrustManager

Remarks

Implementations of this interface are immutable and thread-safe.

Methods

CheckTrust(byte[], FeedUri, OpenPgpKeyCallback?)

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.

ValidSignature CheckTrust(byte[] data, FeedUri uri, OpenPgpKeyCallback? keyCallback = null)

Parameters

data byte[]

The data of the file.

uri FeedUri

The URI the data originally came from.

keyCallback OpenPgpKeyCallback

Callback for reading a specific OpenPGP public key file.

Returns

ValidSignature

The first valid and trusted signature found on the feed.

Exceptions

UriFormatException

uri is a local file.

OperationCanceledException

The user canceled the task.

WebException

A key file could not be downloaded from the internet.

SignatureException

No trusted signature was found.

IOException

A problem occurred while writing trust configuration.

UnauthorizedAccessException

Write access to the trust configuration is not permitted.