C# 클래스 ZeroInstall.Services.Feeds.TrustManager

Methods for verifying signatures and user trust.
상속: ITrustManager
파일 보기 프로젝트 열기: 0install/0install-win

공개 메소드들

메소드 설명
TrustManager ( [ config, [ openPgp, [ trustDB, [ feedCache, [ handler ) : System

Creates a new trust manager.

비공개 메소드들

메소드 설명
AcquireMissingKey ( [ signature, [ uri, [ localPath = null ) : void

Acquires the OpenPGP key file required to verify the given signature.

AskKeyApproval ( [ uri, [ fingerprint, Domain domain ) : bool

Asks the user whether they trust a given key for a specific domain. May automatically accept based on policy.

CheckTrust ( byte data, FeedUri uri, string localPath = null ) : ValidSignature
DownloadKey ( [ keyUri ) : void

Downloads and imports a remote key file.

GetKeyInformation ( [ fingerprint, bool &goodVote ) : string
GetMirrorUrl ( [ signature ) : Uri
HandleNewKey ( [ uri, [ fingerprint, Domain domain ) : bool

Handles new keys that have not been trusted yet.

메소드 상세

TrustManager() 공개 메소드

Creates a new trust manager.
public TrustManager ( [ config, [ openPgp, [ trustDB, [ feedCache, [ handler ) : System
config [ User settings controlling network behaviour, solving, etc.
openPgp [ The OpenPGP-compatible system used to validate the signatures.
trustDB [ A database of OpenPGP signature fingerprints the users trusts to sign s coming from specific domains.
feedCache [ Provides access to a cache of s that were downloaded via HTTP(S).
handler [ A callback object used when the the user needs to be asked questions.
리턴 System