Zero Install .NET API 2.20.0
ZeroInstall.Store.Trust.OpenPgpUtils Class Reference

Helper methods for IKeyIDContainer and IFingerprintContainer. More...

Static Public Member Functions

static string FormatKeyID (this IKeyIDContainer keyIDContainer)
 Formats a key ID as a canonical string.
 
static string FormatFingerprint (this IFingerprintContainer fingerprintContainer)
 Formats a key fingerprint as a canonical string.
 
static void DeployPublicKey (this IOpenPgp openPgp, IKeyIDContainer keyID, string path)
 Exports an OpenPGP public key to a key file. More...
 

Static Package Functions

static long ParseKeyID (string keyID)
 Parses a canonical string formatting of a key ID. More...
 
static byte[] ParseFingerprint (string fingerprint)
 Parses a canonical string formatting of a key fingerprint. More...
 
static long FingerprintToKeyID (byte[] fingerprint)
 Extracts the key ID from a key fingerprint.
 

Detailed Description

Helper methods for IKeyIDContainer and IFingerprintContainer.

Member Function Documentation

◆ DeployPublicKey()

static void ZeroInstall.Store.Trust.OpenPgpUtils.DeployPublicKey ( this IOpenPgp  openPgp,
IKeyIDContainer  keyID,
string  path 
)
inlinestatic

Exports an OpenPGP public key to a key file.

Parameters
openPgpThe OpenPGP-compatible system used to manage keys.
keyIDThe key ID to get the public key for.
pathThe directory to write the key file to.
Exceptions
UnauthorizedAccessExceptionThe file could not be read or written.
UnauthorizedAccessExceptionWrite access to the directory is not permitted.
IOExceptionThe specified keyID could not be found on the system.

◆ ParseFingerprint()

static byte[] ZeroInstall.Store.Trust.OpenPgpUtils.ParseFingerprint ( string  fingerprint)
inlinestaticpackage

Parses a canonical string formatting of a key fingerprint.

Exceptions
FormatExceptionThe string format is not valid.

◆ ParseKeyID()

static long ZeroInstall.Store.Trust.OpenPgpUtils.ParseKeyID ( string  keyID)
inlinestaticpackage

Parses a canonical string formatting of a key ID.

Exceptions
FormatExceptionThe string format is not valid.

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