Aether Utilities Aether Utilities
Aether Utilities Aether Utilities
DocFX + Singulink = ♥

Search Results for

    Edit this page

    Class KeyPair

    Namespace
    AetherUtils.Core.Licensing
    Assembly
    AetherUtils.Core.dll
    Stores a read-only pair of keys.
    public sealed class KeyPair
    Inheritance
    object
    KeyPair
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Extension Methods
    TypeExtensions.CanSerializeJson<T>(T)
    TypeExtensions.CanSerializeXml<T>(T)
    TypeExtensions.SerializeJson<T>(T)
    TypeExtensions.SerializeXml<T>(T)

    Constructors

    KeyPair(string, string)

    Stores a read-only pair of keys.
    public KeyPair(string publicKey, string privateKey)

    Parameters

    publicKey string
    The public key.
    privateKey string
    The private key.

    KeyPair(string, string, string)

    Create a new key pair with the specified public and private keys as well as the passphrase.
    [JsonConstructor]
    public KeyPair(string publicKey, string privateKey, string passphrase)

    Parameters

    publicKey string
    The public key.
    privateKey string
    The private key.
    passphrase string
    The passphrase used to derive the keys.

    Properties

    AsReadOnlyPair

    Get a read-only pair containing the public and private key.
    [Browsable(false)]
    [JsonIgnore]
    [UsedImplicitly]
    public ReadOnlyPair<string, string> AsReadOnlyPair { get; }

    Property Value

    ReadOnlyPair<string, string>

    Passphrase

    The passphrase used to generate the keys.
    [Browsable(false)]
    public string Passphrase { get; }

    Property Value

    string

    PrivateKey

    The private key component of the key pair.
    [Browsable(true)]
    [UsedImplicitly]
    public string PrivateKey { get; }

    Property Value

    string

    PublicKey

    The public key component of the key pair.
    [Browsable(true)]
    [UsedImplicitly]
    public string PublicKey { get; }

    Property Value

    string
    (c) 2024 Ethan Hann. All rights reserved.