31 lines
808 B
C#
31 lines
808 B
C#
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; }
|
|
|
|
/// <summary>
|
|
/// Durch Microsoft.Data.SqlClient clientseitig entschlüsselt.
|
|
/// Darf niemals angezeigt oder protokolliert werden.
|
|
/// </summary>
|
|
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;
|
|
}
|
|
} |