Skip to content

SubjectFormats Class

Values for the Subject Identifier "format" member (RFC 9493 Section 3), naming the set of rules by which a subject is encoded; the discriminator when deserializing a SubjectIdentifier into the correct concrete subtype. Two families live here, each constant naming its own: the formats of the IANA "Security Event Subject Identifier Formats" registry (RFC 9493 Section 8.1.2), and the extensions OpenID Shared Signals Framework 1.0 defines on top of that registry (SSF 1.0 Sections 3.3, 3.5) - which its Section 11 asks IANA to register, a registration the registry does not yet show.

C#
public static class SubjectFormats

Inheritance System.Object → SubjectFormats

Fields

SubjectFormats.Account Field

An account at a service provider, identified by an "acct" URI (RFC 9493 Section 3.2.1). Maps to AccountSubject.

C#
public const string Account = "account";

Field Value

System.String

SubjectFormats.Aliases Field

A list of Subject Identifiers that all identify the same entity (RFC 9493 Section 3.2.8). Maps to AliasesSubject.

C#
public const string Aliases = "aliases";

Field Value

System.String

SubjectFormats.Complex Field

SSF 1.0 extension, not an IANA registration. A set of Simple Subject Members that together refer to exactly one Subject Principal (SSF 1.0 Section 3.3). Maps to ComplexSubject.

C#
public const string Complex = "complex";

Field Value

System.String

SubjectFormats.Did Field

A Decentralized Identifier URL (RFC 9493 Section 3.2.6). Maps to DidSubject.

C#
public const string Did = "did";

Field Value

System.String

SubjectFormats.Email Field

An email address (RFC 9493 Section 3.2.2). Maps to EmailSubject.

C#
public const string Email = "email";

Field Value

System.String

SubjectFormats.IpAddresses Field

SSF 1.0 extension, not an IANA registration. An array of IP addresses observed by the transmitter (SSF 1.0 Section 3.5.3). Maps to IpAddressesSubject.

C#
public const string IpAddresses = "ip-addresses";

Field Value

System.String

SubjectFormats.IssSub Field

An issuer and subject pair, analogous to the JWT "iss" and "sub" claims (RFC 9493 Section 3.2.3). Maps to IssSubSubject.

C#
public const string IssSub = "iss_sub";

Field Value

System.String

SubjectFormats.JwtId Field

SSF 1.0 extension, not an IANA registration. A JWT identified by its "iss" and "jti" claims (SSF 1.0 Section 3.5.1). Maps to JwtIdSubject.

C#
public const string JwtId = "jwt_id";

Field Value

System.String

SubjectFormats.Opaque Field

A string carrying no semantics beyond identifying the subject (RFC 9493 Section 3.2.4). Maps to OpaqueSubject.

C#
public const string Opaque = "opaque";

Field Value

System.String

SubjectFormats.PhoneNumber Field

A telephone number in E.164 form (RFC 9493 Section 3.2.5). Maps to PhoneNumberSubject.

C#
public const string PhoneNumber = "phone_number";

Field Value

System.String

SubjectFormats.SamlAssertionId Field

SSF 1.0 extension, not an IANA registration. A SAML 2.0 assertion identified by its Issuer and ID values (SSF 1.0 Section 3.5.2). Maps to SamlAssertionIdSubject.

C#
public const string SamlAssertionId = "saml_assertion_id";

Field Value

System.String

SubjectFormats.Uri Field

A Uniform Resource Identifier, with no assumption about its scheme or reachability (RFC 9493 Section 3.2.7). Maps to UriSubject.

C#
public const string Uri = "uri";

Field Value

System.String