Xecrets.Sdk.Models.XfKeyPair.md
May 26, 2026 · View on GitHub
Xecrets.Sdk
Xecrets.Sdk.Models
XfKeyPair Class
A public key pair, including optional encryption password and meta data.
public class XfKeyPair
Inheritance System.Object → XfKeyPair
Constructors
XfKeyPair() Constructor
Instantiate a key pair with empty default values
public XfKeyPair();
XfKeyPair(XfKeyPair) Constructor
Instantiate a key pair with properties copied from another instance.
public XfKeyPair(Xecrets.Sdk.Models.XfKeyPair keyPair);
Parameters
keyPair XfKeyPair
The key pair to copy
Properties
XfKeyPair.Created Property
Meta data specifying when it was created (UTC)
public System.DateTime Created { get; init; }
Property Value
XfKeyPair.Email Property
The email moniker used to identify the key pair
public string Email { get; init; }
Property Value
XfKeyPair.Empty Property
An empty key pair
public static Xecrets.Sdk.Models.XfKeyPair Empty { get; }
Property Value
XfKeyPair.FullName Property
The full path and name to the encrypted blob, or an empty string./>
public string FullName { get; init; }
Property Value
XfKeyPair.Password Property
The password to use when encrypting the key pair
public string Password { get; init; }
Property Value
XfKeyPair.PrivateKey Property
The private key PEM
public string PrivateKey { get; init; }
Property Value
XfKeyPair.PublicKey Property
The public key PEM
public string PublicKey { get; init; }