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
longThe key ID of the key.
Fingerprint
OpenPgpFingerprintThe fingerprint of the key.
UserID
stringThe 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
KeyID
The key ID of the key.
public long KeyID { get; init; }
Property Value
UserID
The user's name, e-mail address, etc. of the key owner.
public string UserID { get; init; }
Property Value
Methods
ToString()
Returns the secret key in the form "UserID". Not safe for parsing!
public override string ToString()