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
openPgpIOpenPgpThe OpenPGP-compatible system used to manage keys.
keyIDIKeyIDContainerThe key ID to get the public key for.
pathstringThe 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
keyIDcould not be found on the system.
FormatFingerprint(IFingerprintContainer)
Formats a key fingerprint as a canonical string.
public static string FormatFingerprint(this IFingerprintContainer fingerprintContainer)
  Parameters
fingerprintContainerIFingerprintContainer
Returns
FormatKeyID(IKeyIDContainer)
Formats a key ID as a canonical string.
public static string FormatKeyID(this IKeyIDContainer keyIDContainer)
  Parameters
keyIDContainerIKeyIDContainer