namespace ZB.MOM.WW.LmxProxy.Host.Security
{
/// An API key with description, role, and enabled state.
public class ApiKey
{
public string Key { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public ApiKeyRole Role { get; set; } = ApiKeyRole.ReadOnly;
public bool Enabled { get; set; } = true;
}
/// API key role for authorization.
public enum ApiKeyRole
{
/// Read and subscribe only.
ReadOnly,
/// Full access including writes.
ReadWrite
}
}