15 lines
542 B
C#
Executable File
15 lines
542 B
C#
Executable File
using System.Threading.Tasks;
|
|
|
|
namespace ZB.MOM.WW.CBDDC.Network.Security;
|
|
|
|
public interface IAuthenticator
|
|
{
|
|
/// <summary>
|
|
/// Validates an authentication token for a node identifier.
|
|
/// </summary>
|
|
/// <param name="nodeId">The node identifier to validate.</param>
|
|
/// <param name="token">The authentication token to validate.</param>
|
|
/// <returns><see langword="true"/> if the token is valid for the node; otherwise <see langword="false"/>.</returns>
|
|
Task<bool> ValidateAsync(string nodeId, string token);
|
|
}
|