namespace ZA.CoreService.ESBCertificateManager.Models; public sealed class SonicCredentialProfile { public int SonicCredentialId { get; init; } public int SonicConnectionId { get; init; } public required string CredentialName { get; init; } public required string UserName { get; init; } /// /// Durch Microsoft.Data.SqlClient clientseitig entschlüsselt. /// Darf niemals angezeigt oder protokolliert werden. /// public required string Secret { get; init; } public bool IsDefault { get; init; } public bool IsActive { get; init; } public bool IsComplete => !string.IsNullOrWhiteSpace(UserName) && !string.IsNullOrEmpty(Secret); public override string ToString() { return CredentialName; } }