namespace OTSSignsOrchestrator.Core.Models.DTOs;

/// <summary>
/// Represents an Authentik certificate keypair for display in the Settings UI.
/// </summary>
public class AuthentikKeypairItem
{
    public string Pk { get; set; } = string.Empty;
    public string Name { get; set; } = string.Empty;

    /// <summary>Display text for ComboBox.</summary>
    public string DisplayText => $"{Name}  ({Pk[..Math.Min(8, Pk.Length)]})";

    public override string ToString() => DisplayText;
}
