Skip to content

DidSubject Class

Identifies a subject by a Decentralized Identifier URL (RFC 9493 Section 3.2.6).

C#
public sealed class DidSubject : Abblix.SecurityEvents.Subjects.SubjectIdentifier

Inheritance System.ObjectSubjectIdentifier → DidSubject

Constructors

DidSubject(string) Constructor

Identifies a subject by a Decentralized Identifier URL (RFC 9493 Section 3.2.6).

C#
public DidSubject(string url);

Parameters

url System.String

A DID URL for the subject. RFC 9493 Section 3.2.6 permits a bare DID as well as a DID URL carrying path, query or fragment components. REQUIRED, and must be neither null nor empty.

Properties

DidSubject.Url Property

The DID URL identifying the subject.

C#
public string Url { get; }

Property Value

System.String

Remarks

Held as a string rather than a parsed URL. DID syntax is governed by the DID specification, whose method-specific identifiers the .NET URI parser does not know; parsing here would reject valid DIDs from methods this library has never heard of.