Table of Contents

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

DomainSet

Fingerprint

The cryptographic fingerprint of this key.

public string? Fingerprint { get; set; }

Property Value

string

Methods

Clone()

Creates a deep copy of this Key instance.

public Key Clone()

Returns

Key

The new copy of the Key.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

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

string

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

left Key

The left object

right Key

The right object

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

left Key

The left object

right Key

The right object

Returns

bool

true if the objects are not equal; otherwise, false.