Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

stPkixName

Feature notes: PKIX / CMS implementation notes

Classes, interfaces and records

interfaceiAttrValue

(no public members)

interfaceiAttributeTypeAndValue

inherits from iASN1CustomStruct

One AttributeTypeAndValue element of an RFC 5280 RelativeDistinguishedName (e.g. one "CN=..." or "O=..." pair inside a certificate subject/issuer RDN SET). Application code normally reaches these values through the friendlier iRDNSequence properties (CommonName, OrganizationName, etc.) or through iRelativeDistinguishedName.Items/UniqueItems rather than iterating iAttributeTypeAndValue directly; this interface matters mainly when writing generic DN-walking or DN-comparison code that must handle attribute types the higher-level accessors do not expose by name. No client/server distinction -- used identically wherever a certificate or CSR Name is parsed or built.

function get_attrType: ObjectIdentifier;
Getter for attrType; see the attrType property.
function get_attrValue: iAttrValue;
Getter for attrValue; see the attrValue property.
procedure set_attrType(const aValue: ObjectIdentifier);
Setter for attrType; see the attrType property.
property attrType: ObjectIdentifier read get_attrType write set_attrType;
The attribute's OID (e.g. id-at-commonName, 2.5.4.3). Assigning a different OID re-tags the attribute; most applications should instead build values through iRDNSequence's named properties, which pick the right OID automatically.
property attrValue: iAttrValue read get_attrValue;
The attribute's value, exposed as iAttrValue (an ASN.1 CHOICE keyed by attrType -- see tAttrValueEnum). Read-only here because the value's concrete type/tag is driven by attrType; use iAttrValue's own Choice / AsAtXxx accessors to read or change the actual string content.

classtAttributeTypeAndValue

inherits from tASN1CustomStruct

implements iAttributeTypeAndValue

property attrType: ObjectIdentifier read get_attrType write set_attrType; property attrValue: iAttrValue read get_attrValue;

interfaceiRelativeDistinguishedName

inherits from iASN1CustomStruct

One RFC 5280 RelativeDistinguishedName: the SET of AttributeTypeAndValue pairs that forms a single element of an RDNSequence (usually just one pair, e.g. "CN=example.com", but multi-valued RDNs are legal ASN.1). Application code walking a certificate subject/issuer generically (rather than through iRDNSequence's named CommonName/OrganizationName/etc. properties) uses this to enumerate the attributes of one RDN; reached via iRDNSequence.Items[aIndex]. No client/server distinction -- identical wherever an X.501 Name is parsed or built.

function get_Items(aIndex: Integer): iAttributeTypeAndValue;
Getter for Items; see the Items property.
function get_UniqueItems(aIndex: tAttrValueEnum): iAttrValue;
Getter for UniqueItems; see the UniqueItems property.
property Items[aIndex: Integer]: iAttributeTypeAndValue read get_Items;
The AttributeTypeAndValue pairs of this RDN, by position. Multi-valued RDNs (more than one pair here) are rare in practice but legal per RFC 5280; most certificates have exactly one item per RDN.
property UniqueItems[aIndex: tAttrValueEnum]: iAttrValue read get_UniqueItems; default;
Looks up this RDN's attribute of the given tAttrValueEnum kind directly (see tRelativeDistinguishedName.FindAddSelectedItem), skipping a manual scan over Items; this is what iRDNSequence.UniqueItems/UniqueValues use under the hood for a single RDN.

classtRelativeDistinguishedName

inherits from tASN1CustomOFStruct

implements iRelativeDistinguishedName

property Items[aIndex: Integer]: iAttributeTypeAndValue read get_Items; property UniqueItems[aIndex: tAttrValueEnum]: iAttrValue read get_UniqueItems; default;

interfaceiRDNSequence

inherits from iASN1CustomStruct

RFC 5280 RDNSequence: the actual Distinguished Name of a certificate's subject or issuer (reached via iName.AsRdnSequence), or of a CSR's subject. This is the interface application code uses day to day when reading who a certificate was issued to/by, or when building a subject name for certificate/CSR generation (see StreamSec.DSI.PkixCertGenerator.pas, which drives CommonName/OrganizationName/etc. plus LineSeparator and PreferPrintableStringEncoding from a list of name attributes). No client/server distinction -- the same accessors are used whether you are a TLS client reading a server certificate's subject, a TLS server reading a client (mTLS) certificate's subject, or a CA populating a new certificate's subject/issuer.

function get_CommonName: string;
Getter for CommonName; see the CommonName property.
function get_CountryName: string;
Getter for CountryName; see the CountryName property.
function get_DnQualifier: string;
Getter for DnQualifier; see the DnQualifier property.
function get_EmailAddress: string;
Getter for EmailAddress; see the EmailAddress property.
function get_GenerationQualifier: string;
Getter for GenerationQualifier; see the GenerationQualifier property.
function get_GivenName: string;
Getter for GivenName; see the GivenName property.
function get_Initials: string;
Getter for Initials; see the Initials property.
function get_Items(aIndex: Integer): iRelativeDistinguishedName;
Getter for Items; see the Items property.
function get_LineSeparator: string;
Getter for LineSeparator; see the LineSeparator property.
function get_LocalityName: string;
Getter for LocalityName; see the LocalityName property.
function get_Name: string;
Getter for Name; see the Name property.
function get_OrganizationalUnitName: string;
Getter for OrganizationalUnitName; see the OrganizationalUnitName property.
function get_OrganizationName: string;
Getter for OrganizationName; see the OrganizationName property.
function get_PostalCode: string;
Getter for PostalCode; see the PostalCode property.
function get_StateOrProvinceName: string;
Getter for StateOrProvinceName; see the StateOrProvinceName property.
function get_StreetAddress: string;
Getter for StreetAddressName; see the StreetAddressName property.
function get_Surname: string;
Getter for Surname; see the Surname property.
function get_Title: string;
Getter for Title; see the Title property.
function get_TelephoneNumber: string;
Getter for TelephoneNumber; see the TelephoneNumber property.
function get_OrganizationIdentifier: string;
Getter for OrganizationIdentifier; see the property.
function get_UniqueItems(aIndex: tAttrValueEnum): iAttrValue;
Getter for UniqueItems; see the UniqueItems property.
function get_UniqueValue(aIndex: tAttrValueEnum): string;
Getter for UniqueValues; see the UniqueValues property.
function get_Value(const Index: Integer): string;
Indexed getter behind the named CommonName/OrganizationName/etc. properties and UniqueValues; Index is a tAttrValueEnum ordinal. Not normally called directly.
procedure set_CommonName(const Value: string);
Setter for CommonName; see the CommonName property.
procedure set_CountryName(const Value: string);
Setter for CountryName; see the CountryName property.
procedure set_DnQualifier(const Value: string);
Setter for DnQualifier; see the DnQualifier property.
procedure set_EmailAddress(const Value: string);
Setter for EmailAddress; see the EmailAddress property.
procedure set_GenerationQualifier(const Value: string);
Setter for GenerationQualifier; see the GenerationQualifier property.
procedure set_GivenName(const Value: string);
Setter for GivenName; see the GivenName property.
procedure set_Initials(const Value: string);
Setter for Initials; see the Initials property.
procedure set_LineSeparator(const Value: string);
Setter for LineSeparator; see the LineSeparator property.
procedure set_LocalityName(const Value: string);
Setter for LocalityName; see the LocalityName property.
procedure set_Name(const Value: string);
Setter for Name; see the Name property.
procedure set_OrganizationalUnitName(const Value: string);
Setter for OrganizationalUnitName; see the OrganizationalUnitName property.
procedure set_OrganizationName(const Value: string);
Setter for OrganizationName; see the OrganizationName property.
procedure set_PostalCode(const Value: string);
Setter for PostalCode; see the PostalCode property.
procedure set_StateOrProvinceName(const Value: string);
Setter for StateOrProvinceName; see the StateOrProvinceName property.
procedure set_StreetAddress(const Value: string);
Setter for StreetAddressName; see the StreetAddressName property.
procedure set_Surname(const Value: string);
Setter for Surname; see the Surname property.
procedure set_Title(const Value: string);
Setter for Title; see the Title property.
procedure set_TelephoneNumber(const Value: string);
Setter for TelephoneNumber; see the TelephoneNumber property.
procedure set_OrganizationIdentifier(const Value: string);
Setter for OrganizationIdentifier; see the property.
procedure set_UniqueValue(aIndex: tAttrValueEnum; const Value: string);
Setter for UniqueValues; see the UniqueValues property.
procedure set_Value(const Index: Integer; const Value: string);
Indexed setter behind the named properties and UniqueValues; when LineSeparator is set, this replaces ALL existing RDNs for the attribute with one RDN per LineSeparator-delimited segment of Value (see tRDNSequence.set_Value). Not normally called directly.
function GetPreferPrintableStringEncoding: Boolean;
Getter for PreferPrintableStringEncoding; see that property.
procedure SetPreferPrintableStringEncoding(const Value: Boolean);
Setter for PreferPrintableStringEncoding; see that property.
property PreferPrintableStringEncoding: Boolean read GetPreferPrintableStringEncoding write SetPreferPrintableStringEncoding;
When True, string attributes that fit the PrintableString character set are encoded as ASN.1 PrintableString instead of the default Utf8String when written through the named properties below (CommonName, OrganizationName, etc.) or through UniqueValues/set_Value. Full description »
property Name: string read get_Name write set_Name;
The id-at-name RDN attribute ("N=" in some notations). Reading/writing goes through get_Value/set_Value(avAtName), so if LineSeparator is set and multiple RDNs carry this attribute, reading joins them with LineSeparator and writing replaces all of them.
property Surname: string read get_Surname write set_Surname;
The id-at-surname RDN attribute; same LineSeparator-aware read/write behavior as Name.
property GivenName: string read get_GivenName write set_GivenName;
The id-at-givenName RDN attribute; same LineSeparator-aware read/write behavior as Name.
property Initials: string read get_Initials write set_Initials;
The id-at-initials RDN attribute; same LineSeparator-aware read/write behavior as Name.
property GenerationQualifier: string read get_GenerationQualifier write set_GenerationQualifier;
The id-at-generationQualifier RDN attribute (e.g. "Jr.", "III"); same LineSeparator-aware read/write behavior as Name.
property CommonName: string read get_CommonName write set_CommonName;
The id-at-commonName RDN attribute ("CN=") -- typically the field applications display for "who is this certificate for" (a hostname for TLS server certs, a person/service identity for client/mTLS certs). Same LineSeparator-aware read/write behavior as Name.
property LocalityName: string read get_LocalityName write set_LocalityName;
The id-at-localityName RDN attribute ("L="); same LineSeparator-aware read/write behavior as Name.
property StateOrProvinceName: string read get_StateOrProvinceName write set_StateOrProvinceName;
The id-at-stateOrProvinceName RDN attribute ("ST="); same LineSeparator-aware read/write behavior as Name.
property OrganizationName: string read get_OrganizationName write set_OrganizationName;
The id-at-organizationName RDN attribute ("O="); same LineSeparator-aware read/write behavior as Name.
property OrganizationalUnitName: string read get_OrganizationalUnitName write set_OrganizationalUnitName;
The id-at-organizationalUnitName RDN attribute ("OU="); same LineSeparator-aware read/write behavior as Name.
property Title: string read get_Title write set_Title;
The id-at-title RDN attribute; same LineSeparator-aware read/write behavior as Name.
property DnQualifier: string read get_DnQualifier write set_DnQualifier;
The id-at-dnQualifier RDN attribute; same LineSeparator-aware read/write behavior as Name.
property CountryName: string read get_CountryName write set_CountryName;
The id-at-countryName RDN attribute ("C=", a two-letter ISO code); same LineSeparator-aware read/write behavior as Name.
property EmailAddress: string read get_EmailAddress write set_EmailAddress;
The PKCS#9 emailAddress RDN attribute; same LineSeparator-aware read/write behavior as Name. Distinct from a certificate's SubjectAltName rfc822Name, which most modern relying parties check instead of this legacy RDN.
property StreetAddressName: string read get_StreetAddress write set_StreetAddress;
The id-at-streetAddress RDN attribute; same LineSeparator-aware read/write behavior as Name.
property PostalCode: string read get_PostalCode write set_PostalCode;
The id-at-postalCode RDN attribute; same LineSeparator-aware read/write behavior as Name.
property TelephoneNumber: string read get_TelephoneNumber write set_TelephoneNumber;
The id-at-telephoneNumber RDN attribute; same LineSeparator-aware read/write behavior as Name.
property OrganizationIdentifier: string read get_OrganizationIdentifier write set_OrganizationIdentifier;
The id-at-organizationIdentifier RDN attribute (2.5.4.97), the legal identifier a CA registers an organization under - VAT, LEI or national register number. Common in EV and QWAC subject names; same LineSeparator-aware read/write behavior as Name.
property LineSeparator: string read get_LineSeparator write set_LineSeparator;
When non-empty, this string is used both to join multiple values of the same attribute into one logical string on read, and to split an assigned string back into multiple separate RDNs of that attribute type on write (see tRDNSequence.get_Value/set_Value). Full description »
property Items[aIndex: Integer]: iRelativeDistinguishedName read get_Items;
Direct access to the RDNSequence's RDN SET elements by position, in encounter order. Most applications prefer the named attribute properties above; use Items when you need to walk the DN generically (e.g. to preserve or reorder RDNs exactly as encoded) or to reach attribute types not named by this interface.
property UniqueItems[aIndex: tAttrValueEnum]: iAttrValue read get_UniqueItems;
Looks up the first RDN attribute of the given tAttrValueEnum kind across the whole sequence (via the inherited FindAddSelectedItem on tASN1CustomOFStruct), returning its raw iAttrValue. Full description »
property UniqueValues[aIndex: tAttrValueEnum]: string read get_UniqueValue write set_UniqueValue; default;
The default indexed property: reads/writes a single attribute's value by tAttrValueEnum without the LineSeparator join/split behavior of get_Value/set_Value (i.e. always exactly one RDN in, one string out). Full description »

classtRDNSequence

inherits from tASN1CustomOFStruct

implements iRDNSequence

property Name: string read get_Name write set_Name; property Surname: string read get_Surname write set_Surname; property GivenName: string read get_GivenName write set_GivenName; property Initials: string read get_Initials write set_Initials; property GenerationQualifier: string read get_GenerationQualifier write set_GenerationQualifier; property CommonName: string read get_CommonName write set_CommonName; property LocalityName: string read get_LocalityName write set_LocalityName; property StateOrProvinceName: string read get_StateOrProvinceName write set_StateOrProvinceName; property OrganizationName: string read get_OrganizationName write set_OrganizationName; property OrganizationalUnitName: string read get_OrganizationalUnitName write set_OrganizationalUnitName; property Title: string read get_Title write set_Title; property DnQualifier: string read get_DnQualifier write set_DnQualifier; property CountryName: string read get_CountryName write set_CountryName; property EmailAddress: string read get_EmailAddress write set_EmailAddress; property StreetAddressName: string read get_StreetAddress write set_StreetAddress; property PostalCode: string read get_PostalCode write set_PostalCode; property TelephoneNumber: string read get_TelephoneNumber write set_TelephoneNumber; property OrganizationIdentifier: string read get_OrganizationIdentifier write set_OrganizationIdentifier; property LineSeparator: string read get_LineSeparator write set_LineSeparator; property Items[aIndex: Integer]: iRelativeDistinguishedName read get_Items; property UniqueItems[aIndex: tAttrValueEnum]: iAttrValue read get_UniqueItems; property UniqueValues[aIndex: tAttrValueEnum]: string read get_UniqueValue write set_UniqueValue; default;

interfaceiDirectoryString

inherits from iASN1CustomChoice

RFC 5280 DirectoryString: an ASN.1 CHOICE of five legacy/modern string encodings (TeletexString, PrintableString, UniversalString, Utf8String, BmpString) used for id-at-streetAddress/id-at-postalCode and other free-form directory attributes. Applications normally read/write these values through iAttrValue.AsAtStreetAddress/AsAtPostalCode or iRDNSequence's plain string properties, which already select an encoding; reach for iDirectoryString directly only when you must force a specific wire encoding (e.g. to match a legacy CA's PrintableString-only policy) or must detect which encoding an already-parsed certificate used. No client/server distinction -- identical wherever an X.501 Name is parsed or built.

function get_AsBmpString: string;
Getter for AsBmpString; see the AsBmpString property.
function get_AsPrintableString: string;
Getter for AsPrintableString; see the AsPrintableString property.
function get_AsTeletexString: string;
Getter for AsTeletexString; see the AsTeletexString property.
function get_AsUniversalString: string;
Getter for AsUniversalString; see the AsUniversalString property.
function get_AsUtf8String: string;
Getter for AsUtf8String; see the AsUtf8String property.
function get_Choice: tDirectoryStringEnum;
Getter for Choice; see the Choice property.
procedure set_AsBmpString(const aValue: string);
Setter for AsBmpString; see the AsBmpString property.
procedure set_AsPrintableString(const aValue: string);
Setter for AsPrintableString; see the AsPrintableString property.
procedure set_AsTeletexString(const aValue: string);
Setter for AsTeletexString; see the AsTeletexString property.
procedure set_AsUniversalString(const aValue: string);
Setter for AsUniversalString; see the AsUniversalString property.
procedure set_AsUtf8String(const aValue: string);
Setter for AsUtf8String; see the AsUtf8String property.
procedure set_Choice(const aValue: tDirectoryStringEnum);
Setter for Choice; see the Choice property.
property Choice: tDirectoryStringEnum read get_Choice write set_Choice;
Which of the five string encodings is currently selected. Reading tells you how a parsed certificate actually encoded this attribute; writing re-tags the CHOICE before you set new content via one of the AsXxx properties below (setting an AsXxx property also re-tags implicitly, so most callers never set Choice explicitly).
property AsTeletexString: string read get_AsTeletexString write set_AsTeletexString;
Content as a legacy T.61 TeletexString. Only useful for interop with old CAs/certificates that still use this pre-Unicode encoding; new code should prefer AsUtf8String or AsPrintableString.
property AsPrintableString: string read get_AsPrintableString write set_AsPrintableString;
Content as PrintableString (ASN.1's restricted-charset encoding). Writing this selects the PrintableString choice; use it when a strict or older CA/relying party requires PrintableString over Utf8String for values that fit its limited character set (letters, digits, and a small punctuation set).
property AsUniversalString: string read get_AsUniversalString write set_AsUniversalString;
Content as UniversalString (UCS-4). Rarely used in practice; present for completeness/interop with certificates that chose this encoding.
property AsUtf8String: string read get_AsUtf8String write set_AsUtf8String;
Content as UTF8String -- the modern, recommended DirectoryString encoding for values outside the PrintableString character set (RFC 5280 recommends UTF8String for new certificates).
property AsBmpString: string read get_AsBmpString write set_AsBmpString;
Content as BMPString (UCS-2). Mainly seen in older Microsoft-issued certificates; provided for interop when reading such values.

classtDirectoryString

inherits from tASN1CustomChoice

implements iDirectoryString

property Choice: tDirectoryStringEnum read get_Choice write set_Choice; property AsTeletexString: string read get_AsTeletexString write set_AsTeletexString; property AsPrintableString: string read get_AsPrintableString write set_AsPrintableString; property AsUniversalString: string read get_AsUniversalString write set_AsUniversalString; property AsUtf8String: string read get_AsUtf8String write set_AsUtf8String; property AsBmpString: string read get_AsBmpString write set_AsBmpString;

interfaceiX520Title

inherits from iASN1CustomChoice

X.520 X520Title attribute (id-at-title): the ASN.1 CHOICE-of-string-encoding representation of a certificate subject's "Title" RDN. Reached through iAttrValue.AsAtTitle when walking a DN generically; ordinary applications read/write it via iRDNSequence.Title instead. See iDirectoryString above for what the individual AsXxxString encodings mean -- the same choice of TeletexString/PrintableString/UniversalString/Utf8String/BmpString applies here. No client/server distinction.

function get_AsBmpString: string;
Getter for AsBmpString; see the AsBmpString property.
function get_AsPrintableString: string;
Getter for AsPrintableString; see the AsPrintableString property.
function get_AsTeletexString: string;
Getter for AsTeletexString; see the AsTeletexString property.
function get_AsUniversalString: string;
Getter for AsUniversalString; see the AsUniversalString property.
function get_AsUtf8String: string;
Getter for AsUtf8String; see the AsUtf8String property.
function get_Choice: tX520TitleEnum;
Getter for Choice; see the Choice property.
procedure set_AsBmpString(const aValue: string);
Setter for AsBmpString; see the AsBmpString property.
procedure set_AsPrintableString(const aValue: string);
Setter for AsPrintableString; see the AsPrintableString property.
procedure set_AsTeletexString(const aValue: string);
Setter for AsTeletexString; see the AsTeletexString property.
procedure set_AsUniversalString(const aValue: string);
Setter for AsUniversalString; see the AsUniversalString property.
procedure set_AsUtf8String(const aValue: string);
Setter for AsUtf8String; see the AsUtf8String property.
procedure set_Choice(const aValue: tX520TitleEnum);
Setter for Choice; see the Choice property.
property Choice: tX520TitleEnum read get_Choice write set_Choice;
Which string encoding is currently selected; see iDirectoryString.Choice for the general behavior.
property AsTeletexString: string read get_AsTeletexString write set_AsTeletexString;
Content as TeletexString; interop with legacy certificates only, see iDirectoryString.AsTeletexString.
property AsPrintableString: string read get_AsPrintableString write set_AsPrintableString;
Content as PrintableString; see iDirectoryString.AsPrintableString for when to prefer this over AsUtf8String.
property AsUniversalString: string read get_AsUniversalString write set_AsUniversalString;
Content as UniversalString; rarely used, see iDirectoryString.AsUniversalString.
property AsUtf8String: string read get_AsUtf8String write set_AsUtf8String;
Content as UTF8String, the recommended modern encoding; see iDirectoryString.AsUtf8String.
property AsBmpString: string read get_AsBmpString write set_AsBmpString;
Content as BMPString; mainly for reading older certificates, see iDirectoryString.AsBmpString.

classtX520Title

inherits from tASN1CustomChoice

implements iX520Title

property Choice: tX520TitleEnum read get_Choice write set_Choice; property AsTeletexString: string read get_AsTeletexString write set_AsTeletexString; property AsPrintableString: string read get_AsPrintableString write set_AsPrintableString; property AsUniversalString: string read get_AsUniversalString write set_AsUniversalString; property AsUtf8String: string read get_AsUtf8String write set_AsUtf8String; property AsBmpString: string read get_AsBmpString write set_AsBmpString;

interfaceiX520name

inherits from iASN1CustomChoice

X.520 X520name attribute: the ASN.1 CHOICE-of-string-encoding representation shared by the id-at-name, id-at-surname, id-at-givenName, id-at-initials and id-at-generationQualifier RDN attributes. Reached through iAttrValue.AsAtName/AsAtSurname/AsAtGivenName/AsAtInitials/ AsAtGenerationQualifier when walking a DN generically; ordinary applications read/write these via iRDNSequence's Name/Surname/GivenName/ Initials/GenerationQualifier properties instead. See iDirectoryString above for what the individual AsXxxString encodings mean. No client/server distinction.

function get_AsBmpString: string;
Getter for AsBmpString; see the AsBmpString property.
function get_AsPrintableString: string;
Getter for AsPrintableString; see the AsPrintableString property.
function get_AsTeletexString: string;
Getter for AsTeletexString; see the AsTeletexString property.
function get_AsUniversalString: string;
Getter for AsUniversalString; see the AsUniversalString property.
function get_AsUtf8String: string;
Getter for AsUtf8String; see the AsUtf8String property.
function get_Choice: tX520nameEnum;
Getter for Choice; see the Choice property.
procedure set_AsBmpString(const aValue: string);
Setter for AsBmpString; see the AsBmpString property.
procedure set_AsPrintableString(const aValue: string);
Setter for AsPrintableString; see the AsPrintableString property.
procedure set_AsTeletexString(const aValue: string);
Setter for AsTeletexString; see the AsTeletexString property.
procedure set_AsUniversalString(const aValue: string);
Setter for AsUniversalString; see the AsUniversalString property.
procedure set_AsUtf8String(const aValue: string);
Setter for AsUtf8String; see the AsUtf8String property.
procedure set_Choice(const aValue: tX520nameEnum);
Setter for Choice; see the Choice property.
property Choice: tX520nameEnum read get_Choice write set_Choice;
Which string encoding is currently selected; see iDirectoryString.Choice for the general behavior.
property AsTeletexString: string read get_AsTeletexString write set_AsTeletexString;
Content as TeletexString; interop with legacy certificates only, see iDirectoryString.AsTeletexString.
property AsPrintableString: string read get_AsPrintableString write set_AsPrintableString;
Content as PrintableString; see iDirectoryString.AsPrintableString for when to prefer this over AsUtf8String.
property AsUniversalString: string read get_AsUniversalString write set_AsUniversalString;
Content as UniversalString; rarely used, see iDirectoryString.AsUniversalString.
property AsUtf8String: string read get_AsUtf8String write set_AsUtf8String;
Content as UTF8String, the recommended modern encoding; see iDirectoryString.AsUtf8String.
property AsBmpString: string read get_AsBmpString write set_AsBmpString;
Content as BMPString; mainly for reading older certificates, see iDirectoryString.AsBmpString.

classtX520name

inherits from tASN1CustomChoice

implements iX520name

property Choice: tX520nameEnum read get_Choice write set_Choice; property AsTeletexString: string read get_AsTeletexString write set_AsTeletexString; property AsPrintableString: string read get_AsPrintableString write set_AsPrintableString; property AsUniversalString: string read get_AsUniversalString write set_AsUniversalString; property AsUtf8String: string read get_AsUtf8String write set_AsUtf8String; property AsBmpString: string read get_AsBmpString write set_AsBmpString;

interfaceiX520OrganizationalUnitName

inherits from iASN1CustomChoice

X.520 X520OrganizationalUnitName attribute (id-at-organizationalUnitName, "OU="): the ASN.1 CHOICE-of-string-encoding representation of a certificate subject's organizational-unit RDN. Reached through iAttrValue.AsAtOrganizationalUnitName when walking a DN generically; ordinary applications read/write it via iRDNSequence.OrganizationalUnitName instead. See iDirectoryString above for what the individual AsXxxString encodings mean. No client/server distinction.

function get_AsBmpString: string;
Getter for AsBmpString; see the AsBmpString property.
function get_AsPrintableString: string;
Getter for AsPrintableString; see the AsPrintableString property.
function get_AsTeletexString: string;
Getter for AsTeletexString; see the AsTeletexString property.
function get_AsUniversalString: string;
Getter for AsUniversalString; see the AsUniversalString property.
function get_AsUtf8String: string;
Getter for AsUtf8String; see the AsUtf8String property.
function get_Choice: tX520OrganizationalUnitNameEnum;
Getter for Choice; see the Choice property.
procedure set_AsBmpString(const aValue: string);
Setter for AsBmpString; see the AsBmpString property.
procedure set_AsPrintableString(const aValue: string);
Setter for AsPrintableString; see the AsPrintableString property.
procedure set_AsTeletexString(const aValue: string);
Setter for AsTeletexString; see the AsTeletexString property.
procedure set_AsUniversalString(const aValue: string);
Setter for AsUniversalString; see the AsUniversalString property.
procedure set_AsUtf8String(const aValue: string);
Setter for AsUtf8String; see the AsUtf8String property.
procedure set_Choice(const aValue: tX520OrganizationalUnitNameEnum);
Setter for Choice; see the Choice property.
property Choice: tX520OrganizationalUnitNameEnum read get_Choice write set_Choice;
Which string encoding is currently selected; see iDirectoryString.Choice for the general behavior.
property AsTeletexString: string read get_AsTeletexString write set_AsTeletexString;
Content as TeletexString; interop with legacy certificates only, see iDirectoryString.AsTeletexString.
property AsPrintableString: string read get_AsPrintableString write set_AsPrintableString;
Content as PrintableString; see iDirectoryString.AsPrintableString for when to prefer this over AsUtf8String.
property AsUniversalString: string read get_AsUniversalString write set_AsUniversalString;
Content as UniversalString; rarely used, see iDirectoryString.AsUniversalString.
property AsUtf8String: string read get_AsUtf8String write set_AsUtf8String;
Content as UTF8String, the recommended modern encoding; see iDirectoryString.AsUtf8String.
property AsBmpString: string read get_AsBmpString write set_AsBmpString;
Content as BMPString; mainly for reading older certificates, see iDirectoryString.AsBmpString.

classtX520OrganizationalUnitName

inherits from tASN1CustomChoice

implements iX520OrganizationalUnitName

property Choice: tX520OrganizationalUnitNameEnum read get_Choice write set_Choice; property AsTeletexString: string read get_AsTeletexString write set_AsTeletexString; property AsPrintableString: string read get_AsPrintableString write set_AsPrintableString; property AsUniversalString: string read get_AsUniversalString write set_AsUniversalString; property AsUtf8String: string read get_AsUtf8String write set_AsUtf8String; property AsBmpString: string read get_AsBmpString write set_AsBmpString;

interfaceiX520OrganizationName

inherits from iASN1CustomChoice

X.520 X520OrganizationName attribute (id-at-organizationName, "O="): the ASN.1 CHOICE-of-string-encoding representation of a certificate subject's organization RDN. Reached through iAttrValue.AsAtOrganizationName when walking a DN generically; ordinary applications read/write it via iRDNSequence.OrganizationName instead. See iDirectoryString above for what the individual AsXxxString encodings mean. No client/server distinction.

function get_AsBmpString: string;
Getter for AsBmpString; see the AsBmpString property.
function get_AsPrintableString: string;
Getter for AsPrintableString; see the AsPrintableString property.
function get_AsTeletexString: string;
Getter for AsTeletexString; see the AsTeletexString property.
function get_AsUniversalString: string;
Getter for AsUniversalString; see the AsUniversalString property.
function get_AsUtf8String: string;
Getter for AsUtf8String; see the AsUtf8String property.
function get_Choice: tX520OrganizationNameEnum;
Getter for Choice; see the Choice property.
procedure set_AsBmpString(const aValue: string);
Setter for AsBmpString; see the AsBmpString property.
procedure set_AsPrintableString(const aValue: string);
Setter for AsPrintableString; see the AsPrintableString property.
procedure set_AsTeletexString(const aValue: string);
Setter for AsTeletexString; see the AsTeletexString property.
procedure set_AsUniversalString(const aValue: string);
Setter for AsUniversalString; see the AsUniversalString property.
procedure set_AsUtf8String(const aValue: string);
Setter for AsUtf8String; see the AsUtf8String property.
procedure set_Choice(const aValue: tX520OrganizationNameEnum);
Setter for Choice; see the Choice property.
property Choice: tX520OrganizationNameEnum read get_Choice write set_Choice;
Which string encoding is currently selected; see iDirectoryString.Choice for the general behavior.
property AsTeletexString: string read get_AsTeletexString write set_AsTeletexString;
Content as TeletexString; interop with legacy certificates only, see iDirectoryString.AsTeletexString.
property AsPrintableString: string read get_AsPrintableString write set_AsPrintableString;
Content as PrintableString; see iDirectoryString.AsPrintableString for when to prefer this over AsUtf8String.
property AsUniversalString: string read get_AsUniversalString write set_AsUniversalString;
Content as UniversalString; rarely used, see iDirectoryString.AsUniversalString.
property AsUtf8String: string read get_AsUtf8String write set_AsUtf8String;
Content as UTF8String, the recommended modern encoding; see iDirectoryString.AsUtf8String.
property AsBmpString: string read get_AsBmpString write set_AsBmpString;
Content as BMPString; mainly for reading older certificates, see iDirectoryString.AsBmpString.

classtX520OrganizationName

inherits from tASN1CustomChoice

implements iX520OrganizationName

property Choice: tX520OrganizationNameEnum read get_Choice write set_Choice; property AsTeletexString: string read get_AsTeletexString write set_AsTeletexString; property AsPrintableString: string read get_AsPrintableString write set_AsPrintableString; property AsUniversalString: string read get_AsUniversalString write set_AsUniversalString; property AsUtf8String: string read get_AsUtf8String write set_AsUtf8String; property AsBmpString: string read get_AsBmpString write set_AsBmpString;

interfaceiX520StateOrProvinceName

inherits from iASN1CustomChoice

X.520 X520StateOrProvinceName attribute (id-at-stateOrProvinceName, "ST="): the ASN.1 CHOICE-of-string-encoding representation of a certificate subject's state/province RDN. Reached through iAttrValue.AsAtStateOrProvinceName when walking a DN generically; ordinary applications read/write it via iRDNSequence.StateOrProvinceName instead. See iDirectoryString above for what the individual AsXxxString encodings mean. No client/server distinction.

function get_AsBmpString: string;
Getter for AsBmpString; see the AsBmpString property.
function get_AsPrintableString: string;
Getter for AsPrintableString; see the AsPrintableString property.
function get_AsTeletexString: string;
Getter for AsTeletexString; see the AsTeletexString property.
function get_AsUniversalString: string;
Getter for AsUniversalString; see the AsUniversalString property.
function get_AsUtf8String: string;
Getter for AsUtf8String; see the AsUtf8String property.
function get_Choice: tX520StateOrProvinceNameEnum;
Getter for Choice; see the Choice property.
procedure set_AsBmpString(const aValue: string);
Setter for AsBmpString; see the AsBmpString property.
procedure set_AsPrintableString(const aValue: string);
Setter for AsPrintableString; see the AsPrintableString property.
procedure set_AsTeletexString(const aValue: string);
Setter for AsTeletexString; see the AsTeletexString property.
procedure set_AsUniversalString(const aValue: string);
Setter for AsUniversalString; see the AsUniversalString property.
procedure set_AsUtf8String(const aValue: string);
Setter for AsUtf8String; see the AsUtf8String property.
procedure set_Choice(const aValue: tX520StateOrProvinceNameEnum);
Setter for Choice; see the Choice property.
property Choice: tX520StateOrProvinceNameEnum read get_Choice write set_Choice;
Which string encoding is currently selected; see iDirectoryString.Choice for the general behavior.
property AsTeletexString: string read get_AsTeletexString write set_AsTeletexString;
Content as TeletexString; interop with legacy certificates only, see iDirectoryString.AsTeletexString.
property AsPrintableString: string read get_AsPrintableString write set_AsPrintableString;
Content as PrintableString; see iDirectoryString.AsPrintableString for when to prefer this over AsUtf8String.
property AsUniversalString: string read get_AsUniversalString write set_AsUniversalString;
Content as UniversalString; rarely used, see iDirectoryString.AsUniversalString.
property AsUtf8String: string read get_AsUtf8String write set_AsUtf8String;
Content as UTF8String, the recommended modern encoding; see iDirectoryString.AsUtf8String.
property AsBmpString: string read get_AsBmpString write set_AsBmpString;
Content as BMPString; mainly for reading older certificates, see iDirectoryString.AsBmpString.

classtX520StateOrProvinceName

inherits from tASN1CustomChoice

implements iX520StateOrProvinceName

property Choice: tX520StateOrProvinceNameEnum read get_Choice write set_Choice; property AsTeletexString: string read get_AsTeletexString write set_AsTeletexString; property AsPrintableString: string read get_AsPrintableString write set_AsPrintableString; property AsUniversalString: string read get_AsUniversalString write set_AsUniversalString; property AsUtf8String: string read get_AsUtf8String write set_AsUtf8String; property AsBmpString: string read get_AsBmpString write set_AsBmpString;

interfaceiX520LocalityName

inherits from iASN1CustomChoice

X.520 X520LocalityName attribute (id-at-localityName, "L="): the ASN.1 CHOICE-of-string-encoding representation of a certificate subject's locality/city RDN. Reached through iAttrValue.AsAtLocalityName when walking a DN generically; ordinary applications read/write it via iRDNSequence.LocalityName instead. See iDirectoryString above for what the individual AsXxxString encodings mean. No client/server distinction.

function get_AsBmpString: string;
Getter for AsBmpString; see the AsBmpString property.
function get_AsPrintableString: string;
Getter for AsPrintableString; see the AsPrintableString property.
function get_AsTeletexString: string;
Getter for AsTeletexString; see the AsTeletexString property.
function get_AsUniversalString: string;
Getter for AsUniversalString; see the AsUniversalString property.
function get_AsUtf8String: string;
Getter for AsUtf8String; see the AsUtf8String property.
function get_Choice: tX520LocalityNameEnum;
Getter for Choice; see the Choice property.
procedure set_AsBmpString(const aValue: string);
Setter for AsBmpString; see the AsBmpString property.
procedure set_AsPrintableString(const aValue: string);
Setter for AsPrintableString; see the AsPrintableString property.
procedure set_AsTeletexString(const aValue: string);
Setter for AsTeletexString; see the AsTeletexString property.
procedure set_AsUniversalString(const aValue: string);
Setter for AsUniversalString; see the AsUniversalString property.
procedure set_AsUtf8String(const aValue: string);
Setter for AsUtf8String; see the AsUtf8String property.
procedure set_Choice(const aValue: tX520LocalityNameEnum);
Setter for Choice; see the Choice property.
property Choice: tX520LocalityNameEnum read get_Choice write set_Choice;
Which string encoding is currently selected; see iDirectoryString.Choice for the general behavior.
property AsTeletexString: string read get_AsTeletexString write set_AsTeletexString;
Content as TeletexString; interop with legacy certificates only, see iDirectoryString.AsTeletexString.
property AsPrintableString: string read get_AsPrintableString write set_AsPrintableString;
Content as PrintableString; see iDirectoryString.AsPrintableString for when to prefer this over AsUtf8String.
property AsUniversalString: string read get_AsUniversalString write set_AsUniversalString;
Content as UniversalString; rarely used, see iDirectoryString.AsUniversalString.
property AsUtf8String: string read get_AsUtf8String write set_AsUtf8String;
Content as UTF8String, the recommended modern encoding; see iDirectoryString.AsUtf8String.
property AsBmpString: string read get_AsBmpString write set_AsBmpString;
Content as BMPString; mainly for reading older certificates, see iDirectoryString.AsBmpString.

classtX520LocalityName

inherits from tASN1CustomChoice

implements iX520LocalityName

property Choice: tX520LocalityNameEnum read get_Choice write set_Choice; property AsTeletexString: string read get_AsTeletexString write set_AsTeletexString; property AsPrintableString: string read get_AsPrintableString write set_AsPrintableString; property AsUniversalString: string read get_AsUniversalString write set_AsUniversalString; property AsUtf8String: string read get_AsUtf8String write set_AsUtf8String; property AsBmpString: string read get_AsBmpString write set_AsBmpString;

interfaceiX520CommonName

inherits from iASN1CustomChoice

X.520 X520CommonName attribute (id-at-commonName, "CN="): the ASN.1 CHOICE-of-string-encoding representation of a certificate subject's Common Name RDN -- historically the field a TLS client compared against the server hostname before SubjectAltName became mandatory, and still the field most UIs display as "who is this certificate for". Reached through iAttrValue.AsAtCommonName when walking a DN generically; ordinary applications read/write it via iRDNSequence.CommonName instead. See iDirectoryString above for what the individual AsXxxString encodings mean. No client/server distinction.

function get_AsBmpString: string;
Getter for AsBmpString; see the AsBmpString property.
function get_AsPrintableString: string;
Getter for AsPrintableString; see the AsPrintableString property.
function get_AsTeletexString: string;
Getter for AsTeletexString; see the AsTeletexString property.
function get_AsUniversalString: string;
Getter for AsUniversalString; see the AsUniversalString property.
function get_AsUtf8String: string;
Getter for AsUtf8String; see the AsUtf8String property.
function get_Choice: tX520CommonNameEnum;
Getter for Choice; see the Choice property.
procedure set_AsBmpString(const aValue: string);
Setter for AsBmpString; see the AsBmpString property.
procedure set_AsPrintableString(const aValue: string);
Setter for AsPrintableString; see the AsPrintableString property.
procedure set_AsTeletexString(const aValue: string);
Setter for AsTeletexString; see the AsTeletexString property.
procedure set_AsUniversalString(const aValue: string);
Setter for AsUniversalString; see the AsUniversalString property.
procedure set_AsUtf8String(const aValue: string);
Setter for AsUtf8String; see the AsUtf8String property.
procedure set_Choice(const aValue: tX520CommonNameEnum);
Setter for Choice; see the Choice property.
property Choice: tX520CommonNameEnum read get_Choice write set_Choice;
Which string encoding is currently selected; see iDirectoryString.Choice for the general behavior.
property AsTeletexString: string read get_AsTeletexString write set_AsTeletexString;
Content as TeletexString; interop with legacy certificates only, see iDirectoryString.AsTeletexString.
property AsPrintableString: string read get_AsPrintableString write set_AsPrintableString;
Content as PrintableString; see iDirectoryString.AsPrintableString for when to prefer this over AsUtf8String.
property AsUniversalString: string read get_AsUniversalString write set_AsUniversalString;
Content as UniversalString; rarely used, see iDirectoryString.AsUniversalString.
property AsUtf8String: string read get_AsUtf8String write set_AsUtf8String;
Content as UTF8String, the recommended modern encoding; see iDirectoryString.AsUtf8String.
property AsBmpString: string read get_AsBmpString write set_AsBmpString;
Content as BMPString; mainly for reading older certificates, see iDirectoryString.AsBmpString.

classtX520CommonName

inherits from tASN1CustomChoice

implements iX520CommonName

property Choice: tX520CommonNameEnum read get_Choice write set_Choice; property AsTeletexString: string read get_AsTeletexString write set_AsTeletexString; property AsPrintableString: string read get_AsPrintableString write set_AsPrintableString; property AsUniversalString: string read get_AsUniversalString write set_AsUniversalString; property AsUtf8String: string read get_AsUtf8String write set_AsUtf8String; property AsBmpString: string read get_AsBmpString write set_AsBmpString;

interfaceiAttrValue

inherits from iASN1CustomInstance

The value half of one iAttributeTypeAndValue: an ASN.1 CHOICE (see tAttrValueEnum) whose actual selected type depends on the attribute's OID (id-at-name, id-at-commonName, emailAddress, etc. -- registered by tAttrValue.RegisterAsMappedClass). Applications building or reading a certificate/CSR subject or issuer normally never touch iAttrValue directly -- iRDNSequence's named string properties (CommonName, OrganizationName, EmailAddress, ...) already select the right AsAtXxx accessor for you. Reach for iAttrValue itself only when writing generic DN code that must branch on Choice to handle attribute types the RDNSequence surface does not name explicitly. No client/server distinction -- identical on both sides of any protocol that carries an X.501 Name.

function get_AsAtCommonName: iX520CommonName;
Getter for AsAtCommonName; see the AsAtCommonName property.
function get_AsAtCountryName: string;
Getter for AsAtCountryName; see the AsAtCountryName property.
function get_AsAtDnQualifier: string;
Getter for AsAtDnQualifier; see the AsAtDnQualifier property.
function get_AsAtGenerationQualifier: iX520name;
Getter for AsAtGenerationQualifier; see the AsAtGenerationQualifier property.
function get_AsAtGivenName: iX520name;
Getter for AsAtGivenName; see the AsAtGivenName property.
function get_AsAtInitials: iX520name;
Getter for AsAtInitials; see the AsAtInitials property.
function get_AsAtLocalityName: iX520LocalityName;
Getter for AsAtLocalityName; see the AsAtLocalityName property.
function get_AsAtName: iX520name;
Getter for AsAtName; see the AsAtName property.
function get_AsAtOrganizationalUnitName: iX520OrganizationalUnitName;
Getter for AsAtOrganizationalUnitName; see the AsAtOrganizationalUnitName property.
function get_AsAtOrganizationName: iX520OrganizationName;
Getter for AsAtOrganizationName; see the AsAtOrganizationName property.
function get_AsAtStateOrProvinceName: iX520StateOrProvinceName;
Getter for AsAtStateOrProvinceName; see the AsAtStateOrProvinceName property.
function get_AsAtSurname: iX520name;
Getter for AsAtSurname; see the AsAtSurname property.
function get_AsAtTitle: iX520Title;
Getter for AsAtTitle; see the AsAtTitle property.
function get_AsEmailAddress: string;
Getter for AsEmailAddress; see the AsEmailAddress property.
function get_AsStreetAddress: iDirectoryString;
Getter for AsAtStreetAddress; see the AsAtStreetAddress property.
function get_AsPostalCode: iDirectoryString;
Getter for AsAtPostalCode; see the AsAtPostalCode property.
function get_AsOrganizationIdentifier: iDirectoryString;
Getter for AsAtOrganizationIdentifier; see the property.
function get_AsAtTelephoneNumber: string;
Getter for AsAtTelephoneNumber; see the AsAtTelephoneNumber property.
function get_Choice: tAttrValueEnum;
Getter for Choice; see the Choice property.
procedure set_AsAtCountryName(const aValue: string);
Setter for AsAtCountryName; see the AsAtCountryName property.
procedure set_AsAtDnQualifier(const aValue: string);
Setter for AsAtDnQualifier; see the AsAtDnQualifier property.
procedure set_AsEmailAddress(const aValue: string);
Setter for AsEmailAddress; see the AsEmailAddress property.
procedure set_AsAtTelephoneNumber(const aValue: string);
Setter for AsAtTelephoneNumber; see the AsAtTelephoneNumber property.
procedure set_Choice(const aValue: tAttrValueEnum);
Setter for Choice; see the Choice property.
property Choice: tAttrValueEnum read get_Choice write set_Choice;
Which attribute this value currently represents (avAtCommonName, avAtOrganizationName, ...), i.e. the ASN.1 CHOICE tag. Setting it re-tags the instance before you write through one of the AsAtXxx properties below; iRDNSequence.set_Value already does this for you, so most applications only read Choice when walking an iRelativeDistinguishedName generically.
property AsAtName: iX520name read get_AsAtName;
View of this value as the id-at-name X.520 name attribute (2.5.4.41); reading the property calls SelectChoice(0), so it also re-tags the CHOICE to avAtName as a side effect of the getter. Prefer iRDNSequence.Name for ordinary subject/issuer construction.
property AsAtSurname: iX520name read get_AsAtSurname;
View of this value as id-at-surname; prefer iRDNSequence.Surname.
property AsAtGivenName: iX520name read get_AsAtGivenName;
View of this value as id-at-givenName; prefer iRDNSequence.GivenName.
property AsAtInitials: iX520name read get_AsAtInitials;
View of this value as id-at-initials; prefer iRDNSequence.Initials.
property AsAtGenerationQualifier: iX520name read get_AsAtGenerationQualifier;
View of this value as id-at-generationQualifier; prefer iRDNSequence.GenerationQualifier.
property AsAtCommonName: iX520CommonName read get_AsAtCommonName;
View of this value as id-at-commonName (the "CN=" RDN most applications display for a certificate subject); prefer iRDNSequence.CommonName unless you need the raw iX520CommonName CHOICE (e.g. to pick a specific ASN.1 string encoding).
property AsAtLocalityName: iX520LocalityName read get_AsAtLocalityName;
View of this value as id-at-localityName; prefer iRDNSequence.LocalityName.
property AsAtStateOrProvinceName: iX520StateOrProvinceName read get_AsAtStateOrProvinceName;
View of this value as id-at-stateOrProvinceName; prefer iRDNSequence.StateOrProvinceName.
property AsAtOrganizationName: iX520OrganizationName read get_AsAtOrganizationName;
View of this value as id-at-organizationName ("O="); prefer iRDNSequence.OrganizationName.
property AsAtOrganizationalUnitName: iX520OrganizationalUnitName read get_AsAtOrganizationalUnitName;
View of this value as id-at-organizationalUnitName ("OU="); prefer iRDNSequence.OrganizationalUnitName.
property AsAtTitle: iX520Title read get_AsAtTitle;
View of this value as id-at-title; prefer iRDNSequence.Title.
property AsAtDnQualifier: string read get_AsAtDnQualifier write set_AsAtDnQualifier;
The distinguished-name qualifier attribute (id-at-dnQualifier), read/written as a plain string (always a PrintableString per RFC 5280); prefer iRDNSequence.DnQualifier for ordinary use.
property AsAtCountryName: string read get_AsAtCountryName write set_AsAtCountryName;
The two-letter ISO country code (id-at-countryName, "C="), read/written as a plain string (this attribute is always a PrintableString, hence no choice-of-encoding view); prefer iRDNSequence.CountryName.
property AsEmailAddress: string read get_AsEmailAddress write set_AsEmailAddress;
The PKCS#9 emailAddress attribute, read/written as a plain string (always IA5String); prefer iRDNSequence.EmailAddress. Note this legacy RDN attribute is distinct from a certificate's SubjectAltName rfc822Name, which most modern relying parties check instead.
property AsAtStreetAddress: iDirectoryString read get_AsStreetAddress;
View of this value as id-at-streetAddress via the DirectoryString CHOICE; prefer iRDNSequence.StreetAddressName.
property AsAtPostalCode: iDirectoryString read get_AsPostalCode;
View of this value as id-at-postalCode via the DirectoryString CHOICE; prefer iRDNSequence.PostalCode.
property AsAtOrganizationIdentifier: iDirectoryString read get_AsOrganizationIdentifier;
The id-at-organizationIdentifier attribute (2.5.4.97) as a choice-of-encoding view; prefer iRDNSequence.OrganizationIdentifier unless the encoding itself matters.
property AsAtTelephoneNumber: string read get_AsAtTelephoneNumber write set_AsAtTelephoneNumber;
The id-at-telephoneNumber attribute, read/written as a plain string; prefer iRDNSequence.TelephoneNumber.

classtAttrValue

class procedure RegisterAsMappedClass(aOverride: Boolean = False); override; property Choice: tAttrValueEnum read get_Choice write set_Choice; property AsAtName: iX520name read get_AsAtName implements iX520name; property AsAtSurname: iX520name read get_AsAtSurname; property AsAtGivenName: iX520name read get_AsAtGivenName; property AsAtInitials: iX520name read get_AsAtInitials; property AsAtGenerationQualifier: iX520name read get_AsAtGenerationQualifier; property AsAtCommonName: iX520CommonName read get_AsAtCommonName implements iX520CommonName; property AsAtLocalityName: iX520LocalityName read get_AsAtLocalityName implements iX520LocalityName; property AsAtStateOrProvinceName: iX520StateOrProvinceName read get_AsAtStateOrProvinceName implements iX520StateOrProvinceName; property AsAtOrganizationName: iX520OrganizationName read get_AsAtOrganizationName implements iX520OrganizationName; property AsAtOrganizationalUnitName: iX520OrganizationalUnitName read get_AsAtOrganizationalUnitName implements iX520OrganizationalUnitName; property AsAtTitle: iX520Title read get_AsAtTitle implements iX520Title; property AsAtDnQualifier: string read get_AsAtDnQualifier write set_AsAtDnQualifier; property AsAtCountryName: string read get_AsAtCountryName write set_AsAtCountryName; property AsEmailAddress: string read get_AsEmailAddress write set_AsEmailAddress; property AsAtStreetAddress: iDirectoryString read get_AsStreetAddress; property AsAtPostalCode: iDirectoryString read get_AsPostalCode; property AsAtOrganizationIdentifier: iDirectoryString read get_AsOrganizationIdentifier; property AsAtTelephoneNumber: string read get_AsAtTelephoneNumber write set_AsAtTelephoneNumber;

classtAttrValueInformationObject

inherits from tASN1TypeIdentifier

(no public members)

interfaceiName

inherits from iASN1CustomChoice

RFC 5280 Name: the CHOICE type of a certificate's subject and issuer fields (iCertificate.subject / iCertificate.issuer, see StreamSec.DSI.PkixCert.pas) and of a CSR's subject. Currently rdnSequence is the only defined alternative, so in practice every iName is read via AsRdnSequence to get at the actual attribute list. Applications building or comparing certificate subjects/issuers -- on either the certificate generator or the relying/verifying side -- go through this interface; there is no client-vs-server difference, since a Name is just carried data, not protocol-role-specific.

function get_AsRdnSequence: iRDNSequence;
Getter for AsRdnSequence; see the AsRdnSequence property.
function get_Choice: tNameEnum;
Getter for Choice; see the Choice property.
procedure set_Choice(const aValue: tNameEnum);
Setter for Choice; see the Choice property.
property Choice: tNameEnum read get_Choice write set_Choice;
Which Name alternative is selected (only nRdnSequence is currently defined by RFC 5280, so this is mostly informational/future-proofing).
property AsRdnSequence: iRDNSequence read get_AsRdnSequence;
The Name's contents as an RDNSequence -- the ordered list of RDNs (CN, O, OU, C, ...) that make up a certificate's subject or issuer Distinguished Name. This is the entry point applications use to read or populate a subject/issuer, e.g. tbsCertificate.subject.AsRdnSequence.CommonName.

classtName

destructor Destroy; override; property Choice: tNameEnum read get_Choice write set_Choice; property AsRdnSequence: iRDNSequence read get_AsRdnSequence implements iRDNSequence;

Types (enumerations, sets, aliases)

enumtDirectoryStringEnum

  tDirectoryStringEnum = (dsUndefined,
                          dsTeletexString,
                          dsPrintableString,
                          dsUniversalString,
                          dsUtf8String,
                          dsBmpString);

enumtX520TitleEnum

  tX520TitleEnum = (xtUndefined,
                    xtTeletexString,
                    xtPrintableString,
                    xtUniversalString,
                    xtUtf8String,
                    xtBmpString);

enumtX520nameEnum

  tX520nameEnum = (xUndefined,
                   xTeletexString,
                   xPrintableString,
                   xUniversalString,
                   xUtf8String,
                   xBmpString);

enumtX520OrganizationalUnitNameEnum

  tX520OrganizationalUnitNameEnum = (xoUndefined,
                                     xoTeletexString,
                                     xoPrintableString,
                                     xoUniversalString,
                                     xoUtf8String,
                                     xoBmpString);

enumtX520OrganizationNameEnum

  tX520OrganizationNameEnum = (xonUndefined,
                               xonTeletexString,
                               xonPrintableString,
                               xonUniversalString,
                               xonUtf8String,
                               xonBmpString);

enumtX520StateOrProvinceNameEnum

  tX520StateOrProvinceNameEnum = (xsUndefined,
                                  xsTeletexString,
                                  xsPrintableString,
                                  xsUniversalString,
                                  xsUtf8String,
                                  xsBmpString);

enumtX520LocalityNameEnum

  tX520LocalityNameEnum = (xlUndefined,
                           xlTeletexString,
                           xlPrintableString,
                           xlUniversalString,
                           xlUtf8String,
                           xlBmpString);

enumtX520CommonNameEnum

  tX520CommonNameEnum = (xcUndefined,
                         xcTeletexString,
                         xcPrintableString,
                         xcUniversalString,
                         xcUtf8String,
                         xcBmpString);

enumtAttrValueEnum

  tAttrValueEnum = (avUndefined,
                    avAtName,
                    avAtSurname,
                    avAtGivenName,
                    avAtInitials,
                    avAtGenerationQualifier,
                    avAtCommonName,
                    avAtLocalityName,
                    avAtStateOrProvinceName,
                    avAtOrganizationName,
                    avAtOrganizationalUnitName,
                    avAtTitle,
                    avAtDnQualifier,
                    avAtCountryName,
                    avEmailAddress,
                    avAtPostalCode,
                    avAtStreetAddress,
                    avAtSerialNumber,
                    avAtTelephoneNumber,
                    { X.520 / ETSI EN 319 412. Appended, not inserted: an
                      attribute's ordinal IS its CHOICE index + 1, so putting
                      this anywhere but last would silently re-tag every
                      attribute after it. }
                    avAtOrganizationIdentifier);

enumtNameEnum

  tNameEnum = (nUndefined,
               nRdnSequence);