9cad9ed0fc
v2-ci / build (push) Failing after 41s
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
Adds <summary>/<param>/<returns>/<inheritdoc> where missing and removes project bookkeeping IDs (task/tracking refs) from shipped code comments, so the docs read cleanly and CommentChecker is quiet except for known false positives (PLC/protocol terms, event/IEqualityComparer inheritdoc). Doc/comment-only; no logic changed; solution builds clean.
38 lines
1.5 KiB
C#
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.
|
|
/// 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; }
|
|
}
|