Skip to content

PhoneNumberSubject Class

Identifies a subject by a telephone number (RFC 9493 Section 3.2.5).

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

Inheritance System.ObjectSubjectIdentifier → PhoneNumberSubject

Constructors

PhoneNumberSubject(string) Constructor

Identifies a subject by a telephone number (RFC 9493 Section 3.2.5).

C#
public PhoneNumberSubject(string phoneNumber);

Parameters

phoneNumber System.String

The subject's full telephone number including its international dialling prefix, formatted according to E.164. REQUIRED, and must be neither null nor empty.

Properties

PhoneNumberSubject.PhoneNumber Property

The telephone number, as received.

C#
public string PhoneNumber { get; }

Property Value

System.String

Remarks

E.164 form is what RFC 9493 Section 3.2.5 requires of the sender, so this library neither reformats an incoming value nor rejects one that departs from E.164: a receiver that discarded such an event would lose a signal it could still act on, and a receiver that rewrote it would be guessing at the sender's intent. Compare through PhoneNumberCanonicalization when values from different senders must meet.