Files
lmxopcua/src/Core/ZB.MOM.WW.OtOpcUa.Configuration/Entities/ClusterNodeCredential.cs
T
Joseph Doherty 64e3fbe035
v2-ci / build (push) Failing after 1m43s
v2-ci / unit-tests (tests/Core/ZB.MOM.WW.OtOpcUa.Cluster.Tests) (push) Has been skipped
v2-ci / unit-tests (tests/Server/ZB.MOM.WW.OtOpcUa.ControlPlane.Tests) (push) Has been skipped
v2-ci / unit-tests (tests/Server/ZB.MOM.WW.OtOpcUa.OpcUaServer.Tests) (push) Has been skipped
v2-ci / unit-tests (tests/Server/ZB.MOM.WW.OtOpcUa.Runtime.Tests) (push) Has been skipped
v2-ci / unit-tests (tests/Server/ZB.MOM.WW.OtOpcUa.Security.Tests) (push) Has been skipped
v2-ci / integration (tests/Server/ZB.MOM.WW.OtOpcUa.Host.IntegrationTests) (push) Has been skipped
v2-ci / integration (tests/Server/ZB.MOM.WW.OtOpcUa.OpcUaServer.IntegrationTests) (push) Has been skipped
docs: backfill XML documentation across 756 files
Adds <summary>, <param>, <typeparam>, and <inheritdoc/> tags to public
members surfaced by commentchecker — resolves 5,847 of 5,869 issues
(99.6%) across three /fixdocs passes.
2026-05-28 08:10:17 -04:00

38 lines
1.5 KiB
C#

using ZB.MOM.WW.OtOpcUa.Configuration.Enums;
namespace ZB.MOM.WW.OtOpcUa.Configuration.Entities;
/// <summary>
/// Authenticates a <see cref="ClusterNode"/> to the central config DB.
/// Per decision #83 — credentials bind to NodeId, not ClusterId.
/// </summary>
public sealed class ClusterNodeCredential
{
/// <summary>Gets or sets the credential identifier.</summary>
public Guid CredentialId { get; set; }
/// <summary>Gets or sets the node identifier this credential binds to.</summary>
public required string NodeId { get; set; }
/// <summary>Gets or sets the credential kind (login, certificate, etc.).</summary>
public required CredentialKind Kind { get; set; }
/// <summary>Gets or sets the credential value (login name / cert thumbprint / SID / gMSA name).</summary>
public required string Value { get; set; }
/// <summary>Gets or sets a value indicating whether the credential is enabled.</summary>
public bool Enabled { get; set; } = true;
/// <summary>Gets or sets the date/time when the credential was last rotated.</summary>
public DateTime? RotatedAt { get; set; }
/// <summary>Gets or sets the date/time when the credential was created.</summary>
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
/// <summary>Gets or sets the user who created the credential.</summary>
public required string CreatedBy { get; set; }
/// <summary>Gets or sets the related cluster node.</summary>
public ClusterNode? Node { get; set; }
}