Class KeyPair
- Namespace
- AetherUtils.Core.Licensing
- Assembly
- AetherUtils.Core.dll
Stores a read-only pair of keys.
public sealed class KeyPair
- Inheritance
-
KeyPair
- Inherited Members
- Extension Methods
Constructors
KeyPair(string, string)
Stores a read-only pair of keys.
public KeyPair(string publicKey, string privateKey)
Parameters
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
publicKeystring- The public key.
privateKeystring- The private key.
passphrasestring- 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
Passphrase
The passphrase used to generate the keys.
[Browsable(false)]
public string Passphrase { get; }
Property Value
PrivateKey
The private key component of the key pair.
[Browsable(true)]
[UsedImplicitly]
public string PrivateKey { get; }
Property Value
PublicKey
The public key component of the key pair.
[Browsable(true)]
[UsedImplicitly]
public string PublicKey { get; }