Enum
public enum AuthenticationMechanism
Namespace: SharpMeter.Dlms.Enums
DLMS/COSEM authentication mechanism identifiers.
Fields
| Name | Description |
|---|---|
HighLevelSecurity static |
High Level Security — challenge-response. |
HighLevelSecurityEcdsa static |
High Level Security with ECDSA. |
HighLevelSecurityGmac static |
High Level Security with GMAC. |
HighLevelSecurityMd5 static |
High Level Security with MD5. |
HighLevelSecuritySha1 static |
High Level Security with SHA-1. |
HighLevelSecuritySha256 static |
High Level Security with SHA-256. |
LowLevelSecurity static |
Low Level Security — password-based. |
None static |
No authentication (Lowest Level Security). |
HighLevelSecurity
HighLevelSecurity = 2
High Level Security — challenge-response.
HighLevelSecurityEcdsa
HighLevelSecurityEcdsa = 7
High Level Security with ECDSA.
HighLevelSecurityGmac
HighLevelSecurityGmac = 5
High Level Security with GMAC.
HighLevelSecurityMd5
HighLevelSecurityMd5 = 3
High Level Security with MD5.
HighLevelSecuritySha1
HighLevelSecuritySha1 = 4
High Level Security with SHA-1.
HighLevelSecuritySha256
HighLevelSecuritySha256 = 6
High Level Security with SHA-256.
LowLevelSecurity
LowLevelSecurity = 1
Low Level Security — password-based.
None
None = 0
No authentication (Lowest Level Security).
View Source
/// <summary>
/// DLMS/COSEM authentication mechanism identifiers.
/// </summary>
[SuppressMessage("Design", "CA1028:Enum storage should be Int32", Justification = "Wire protocol requires byte-sized values.")]
public enum AuthenticationMechanism : byte
{
/// <summary>No authentication (Lowest Level Security).</summary>
None = 0,
/// <summary>Low Level Security — password-based.</summary>
LowLevelSecurity = 1,
/// <summary>High Level Security — challenge-response.</summary>
HighLevelSecurity = 2,
/// <summary>High Level Security with MD5.</summary>
HighLevelSecurityMd5 = 3,
/// <summary>High Level Security with SHA-1.</summary>
HighLevelSecuritySha1 = 4,
/// <summary>High Level Security with GMAC.</summary>
HighLevelSecurityGmac = 5,
/// <summary>High Level Security with SHA-256.</summary>
HighLevelSecuritySha256 = 6,
/// <summary>High Level Security with ECDSA.</summary>
HighLevelSecurityEcdsa = 7
}