C# Class ZeroInstall.Store.Trust.OpenPgpUtils

Helper methods for IKeyIDContainer and IFingerprintContainer.
ファイルを表示 Open project: 0install/0install-win Class Usage Examples

Public Methods

Method Description
DeployPublicKey ( [ openPgp, [ keyID, [ path ) : void

Exports an OpenPGP public key to a key file.

FormatFingerprint ( [ fingerprintContainer ) : string

Formats a key fingerprint as a canonical string.

FormatKeyID ( [ keyIDContainer ) : string

Formats a key ID as a canonical string.

Private Methods

Method Description
FingerprintToKeyID ( [ fingerprint ) : long

Extracts the key ID from a key fingerprint.

ParseFingerpint ( [ fingerprint ) : byte[]
ParseKeyID ( [ keyID ) : long

Parses a canonical string formatting of a key ID.

Method Details

DeployPublicKey() public static method

Exports an OpenPGP public key to a key file.
The file could not be read or written. Write access to the directory is not permitted. The specified could not be found on the system.
public static DeployPublicKey ( [ openPgp, [ keyID, [ path ) : void
openPgp [ The OpenPGP-compatible system used to manage keys.
keyID [ The key ID to get the public key for.
path [ The directory to write the key file to.
return void

FormatFingerprint() public static method

Formats a key fingerprint as a canonical string.
public static FormatFingerprint ( [ fingerprintContainer ) : string
fingerprintContainer [
return string

FormatKeyID() public static method

Formats a key ID as a canonical string.
public static FormatKeyID ( [ keyIDContainer ) : string
keyIDContainer [
return string