Class Key
- Namespace
- ZeroInstall.Store.Trust
- Assembly
- ZeroInstall.Store.dll
A known OpenPGP key, trusted to sign feeds from a certain set of domains.
[Equatable]
public sealed class Key : ICloneable<Key>, IEquatable<Key>
- Inheritance
-
Key
- Implements
- Inherited Members
Properties
Domains
A list of Domains this key is valid for.
[SetEquality]
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?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
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.