Table of Contents

Class OpenPgpSecretKey

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

Represents a secret key stored in a local IOpenPgp profile.

public sealed record OpenPgpSecretKey : IFingerprintContainer, IKeyIDContainer, IEquatable<OpenPgpSecretKey>
Inheritance
OpenPgpSecretKey
Implements
Inherited Members
Extension Methods

Constructors

OpenPgpSecretKey(long, OpenPgpFingerprint, string)

Represents a secret key stored in a local IOpenPgp profile.

public OpenPgpSecretKey(long KeyID, OpenPgpFingerprint Fingerprint, string UserID)

Parameters

KeyID long

The key ID of the key.

Fingerprint OpenPgpFingerprint

The fingerprint of the key.

UserID string

The user's name, e-mail address, etc. of the key owner.

Properties

Fingerprint

The fingerprint of the key.

public OpenPgpFingerprint Fingerprint { get; init; }

Property Value

OpenPgpFingerprint

KeyID

The key ID of the key.

public long KeyID { get; init; }

Property Value

long

UserID

The user's name, e-mail address, etc. of the key owner.

public string UserID { get; init; }

Property Value

string

Methods

ToString()

Returns the secret key in the form "UserID". Not safe for parsing!

public override string ToString()

Returns

string