Class SecomIdentitySetting
- Namespace
- EncDotNet.S100.Collections.Secom
- Assembly
- EncDotNet.S100.Collections.dll
The values of a SECOM source's Identity setting (#883): which MCP identity it presents to the service, and signs SECOM 2.0 requests with.
public static class SecomIdentitySetting
- Inheritance
-
SecomIdentitySetting
- Inherited Members
Remarks
The setting is a reference only, never a key, password or thumbprint copy:
- Default follows the default identity, resolved each time the source is read.
- None never presents a certificate and never signs.
- A reference such as
sc-ident:91d0b3c5names one identity (ReferenceIdOf(string)). When no identity has that reference, the source presents none.
Fields
Default
Follow the default identity.
public const string Default = "default"
Field Value
None
Never present a certificate or sign a request.
public const string None = "none"
Field Value
ReferencePrefix
The prefix of an identity's reference id, e.g. sc-ident:4f9c2a7e.
public const string ReferencePrefix = "sc-ident:"
Field Value
Methods
IsReference(string?)
True when value is a reference id: sc-ident: and 1–64 hex digits.
public static bool IsReference(string? value)
Parameters
valuestring
Returns
ReferenceIdOf(string)
The reference id for a certificate thumbprint: sc-ident: and its first 8 hex digits, lower case.
public static string ReferenceIdOf(string thumbprint)
Parameters
thumbprintstring
Returns
TryParse(string?, out string?)
Reads a setting as a user or tool gave it: default, none
or a reference id, trimmed and in lower case.
public static bool TryParse(string? value, out string? setting)
Parameters
Returns
- bool
False when
valueis none of the three.