Class Key
- Namespace
- ZeroInstall.Model.Trust
- Assembly
- ZeroInstall.Model.dll
A known OpenPGP key, trusted to sign feeds from a certain set of domains.
public sealed class Key : ICloneable<Key>, IEquatable<Key>
- Inheritance
-
objectKey
- Implements
Constructors
Key()
public Key()
Properties
Domains
A list of Domains this key is valid for.
public DomainSet Domains { get; }
Property Value
Fingerprint
The cryptographic fingerprint of this key.
public string? Fingerprint { get; set; }
Property Value
Methods
Clone()
Creates a deep copy of this Key instance.
public Key Clone()
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
Returns the key in the form "Fingerprint: Domain1, Domain2, ...". Safe for parsing!
public override string ToString()
Returns
Operators
operator ==(Key?, Key?)
Indicates whether the object on the left is equal to the object on the right.
public static bool operator ==(Key? left, Key? right)
Parameters
Returns
- bool
true if the objects are equal; otherwise, false.
operator !=(Key?, Key?)
Indicates whether the object on the left is not equal to the object on the right.
public static bool operator !=(Key? left, Key? right)
Parameters
Returns
- bool
true if the objects are not equal; otherwise, false.