Table of Contents

Class OpenPgpUtils

Namespace
ZeroInstall.Store.Trust
Assembly
ZeroInstall.Store.dll

Helper methods for IKeyIDContainer and IFingerprintContainer.

public static class OpenPgpUtils
Inheritance
OpenPgpUtils
Inherited Members

Methods

DeployPublicKey(IOpenPgp, IKeyIDContainer, string)

Exports an OpenPGP public key to a key file.

public static void DeployPublicKey(this IOpenPgp openPgp, IKeyIDContainer keyID, string path)

Parameters

openPgp IOpenPgp

The OpenPGP-compatible system used to manage keys.

keyID IKeyIDContainer

The key ID to get the public key for.

path string

The directory to write the key file to.

Exceptions

UnauthorizedAccessException

The file could not be read or written.

UnauthorizedAccessException

Write access to the directory is not permitted.

IOException

The specified keyID could not be found on the system.

FormatFingerprint(IFingerprintContainer)

Formats a key fingerprint as a canonical string.

public static string FormatFingerprint(this IFingerprintContainer fingerprintContainer)

Parameters

fingerprintContainer IFingerprintContainer

Returns

string

FormatKeyID(IKeyIDContainer)

Formats a key ID as a canonical string.

public static string FormatKeyID(this IKeyIDContainer keyIDContainer)

Parameters

keyIDContainer IKeyIDContainer

Returns

string