Feature notes: PKIX / CMS implementation notes
(no public members)
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;
function get_attrValue: iAttrValue;
procedure set_attrType(const aValue: ObjectIdentifier);
property attrType: ObjectIdentifier read get_attrType write set_attrType;
property attrValue: iAttrValue read get_attrValue;
inherits from tASN1CustomStruct
implements iAttributeTypeAndValue
property attrType: ObjectIdentifier read get_attrType write set_attrType;
property attrValue: iAttrValue read get_attrValue;
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;
function get_UniqueItems(aIndex: tAttrValueEnum): iAttrValue;
property Items[aIndex: Integer]: iAttributeTypeAndValue read get_Items;
property UniqueItems[aIndex: tAttrValueEnum]: iAttrValue read get_UniqueItems; default;
inherits from tASN1CustomOFStruct
implements iRelativeDistinguishedName
property Items[aIndex: Integer]: iAttributeTypeAndValue read get_Items;
property UniqueItems[aIndex: tAttrValueEnum]: iAttrValue read get_UniqueItems; default;
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;
function get_CountryName: string;
function get_DnQualifier: string;
function get_EmailAddress: string;
function get_GenerationQualifier: string;
function get_GivenName: string;
function get_Initials: string;
function get_Items(aIndex: Integer): iRelativeDistinguishedName;
function get_LineSeparator: string;
function get_LocalityName: string;
function get_Name: string;
function get_OrganizationalUnitName: string;
function get_OrganizationName: string;
function get_PostalCode: string;
function get_StateOrProvinceName: string;
function get_StreetAddress: string;
function get_Surname: string;
function get_Title: string;
function get_TelephoneNumber: string;
function get_OrganizationIdentifier: string;
function get_UniqueItems(aIndex: tAttrValueEnum): iAttrValue;
function get_UniqueValue(aIndex: tAttrValueEnum): string;
function get_Value(const Index: Integer): string;
procedure set_CommonName(const Value: string);
procedure set_CountryName(const Value: string);
procedure set_DnQualifier(const Value: string);
procedure set_EmailAddress(const Value: string);
procedure set_GenerationQualifier(const Value: string);
procedure set_GivenName(const Value: string);
procedure set_Initials(const Value: string);
procedure set_LineSeparator(const Value: string);
procedure set_LocalityName(const Value: string);
procedure set_Name(const Value: string);
procedure set_OrganizationalUnitName(const Value: string);
procedure set_OrganizationName(const Value: string);
procedure set_PostalCode(const Value: string);
procedure set_StateOrProvinceName(const Value: string);
procedure set_StreetAddress(const Value: string);
procedure set_Surname(const Value: string);
procedure set_Title(const Value: string);
procedure set_TelephoneNumber(const Value: string);
procedure set_OrganizationIdentifier(const Value: string);
procedure set_UniqueValue(aIndex: tAttrValueEnum; const Value: string);
procedure set_Value(const Index: Integer; const Value: string);
function GetPreferPrintableStringEncoding: Boolean;
procedure SetPreferPrintableStringEncoding(const Value: Boolean);
property PreferPrintableStringEncoding: Boolean read GetPreferPrintableStringEncoding write SetPreferPrintableStringEncoding;
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;
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;
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;
function get_AsPrintableString: string;
function get_AsTeletexString: string;
function get_AsUniversalString: string;
function get_AsUtf8String: string;
function get_Choice: tDirectoryStringEnum;
procedure set_AsBmpString(const aValue: string);
procedure set_AsPrintableString(const aValue: string);
procedure set_AsTeletexString(const aValue: string);
procedure set_AsUniversalString(const aValue: string);
procedure set_AsUtf8String(const aValue: string);
procedure set_Choice(const aValue: tDirectoryStringEnum);
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;
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;
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;
function get_AsPrintableString: string;
function get_AsTeletexString: string;
function get_AsUniversalString: string;
function get_AsUtf8String: string;
function get_Choice: tX520TitleEnum;
procedure set_AsBmpString(const aValue: string);
procedure set_AsPrintableString(const aValue: string);
procedure set_AsTeletexString(const aValue: string);
procedure set_AsUniversalString(const aValue: string);
procedure set_AsUtf8String(const aValue: string);
procedure set_Choice(const aValue: tX520TitleEnum);
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;
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;
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;
function get_AsPrintableString: string;
function get_AsTeletexString: string;
function get_AsUniversalString: string;
function get_AsUtf8String: string;
function get_Choice: tX520nameEnum;
procedure set_AsBmpString(const aValue: string);
procedure set_AsPrintableString(const aValue: string);
procedure set_AsTeletexString(const aValue: string);
procedure set_AsUniversalString(const aValue: string);
procedure set_AsUtf8String(const aValue: string);
procedure set_Choice(const aValue: tX520nameEnum);
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;
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;
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;
function get_AsPrintableString: string;
function get_AsTeletexString: string;
function get_AsUniversalString: string;
function get_AsUtf8String: string;
function get_Choice: tX520OrganizationalUnitNameEnum;
procedure set_AsBmpString(const aValue: string);
procedure set_AsPrintableString(const aValue: string);
procedure set_AsTeletexString(const aValue: string);
procedure set_AsUniversalString(const aValue: string);
procedure set_AsUtf8String(const aValue: string);
procedure set_Choice(const aValue: tX520OrganizationalUnitNameEnum);
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;
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;
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;
function get_AsPrintableString: string;
function get_AsTeletexString: string;
function get_AsUniversalString: string;
function get_AsUtf8String: string;
function get_Choice: tX520OrganizationNameEnum;
procedure set_AsBmpString(const aValue: string);
procedure set_AsPrintableString(const aValue: string);
procedure set_AsTeletexString(const aValue: string);
procedure set_AsUniversalString(const aValue: string);
procedure set_AsUtf8String(const aValue: string);
procedure set_Choice(const aValue: tX520OrganizationNameEnum);
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;
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;
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;
function get_AsPrintableString: string;
function get_AsTeletexString: string;
function get_AsUniversalString: string;
function get_AsUtf8String: string;
function get_Choice: tX520StateOrProvinceNameEnum;
procedure set_AsBmpString(const aValue: string);
procedure set_AsPrintableString(const aValue: string);
procedure set_AsTeletexString(const aValue: string);
procedure set_AsUniversalString(const aValue: string);
procedure set_AsUtf8String(const aValue: string);
procedure set_Choice(const aValue: tX520StateOrProvinceNameEnum);
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;
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;
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;
function get_AsPrintableString: string;
function get_AsTeletexString: string;
function get_AsUniversalString: string;
function get_AsUtf8String: string;
function get_Choice: tX520LocalityNameEnum;
procedure set_AsBmpString(const aValue: string);
procedure set_AsPrintableString(const aValue: string);
procedure set_AsTeletexString(const aValue: string);
procedure set_AsUniversalString(const aValue: string);
procedure set_AsUtf8String(const aValue: string);
procedure set_Choice(const aValue: tX520LocalityNameEnum);
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;
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;
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;
function get_AsPrintableString: string;
function get_AsTeletexString: string;
function get_AsUniversalString: string;
function get_AsUtf8String: string;
function get_Choice: tX520CommonNameEnum;
procedure set_AsBmpString(const aValue: string);
procedure set_AsPrintableString(const aValue: string);
procedure set_AsTeletexString(const aValue: string);
procedure set_AsUniversalString(const aValue: string);
procedure set_AsUtf8String(const aValue: string);
procedure set_Choice(const aValue: tX520CommonNameEnum);
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;
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;
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;
function get_AsAtCountryName: string;
function get_AsAtDnQualifier: string;
function get_AsAtGenerationQualifier: iX520name;
function get_AsAtGivenName: iX520name;
function get_AsAtInitials: iX520name;
function get_AsAtLocalityName: iX520LocalityName;
function get_AsAtName: iX520name;
function get_AsAtOrganizationalUnitName: iX520OrganizationalUnitName;
function get_AsAtOrganizationName: iX520OrganizationName;
function get_AsAtStateOrProvinceName: iX520StateOrProvinceName;
function get_AsAtSurname: iX520name;
function get_AsAtTitle: iX520Title;
function get_AsEmailAddress: string;
function get_AsStreetAddress: iDirectoryString;
function get_AsPostalCode: iDirectoryString;
function get_AsOrganizationIdentifier: iDirectoryString;
function get_AsAtTelephoneNumber: string;
function get_Choice: tAttrValueEnum;
procedure set_AsAtCountryName(const aValue: string);
procedure set_AsAtDnQualifier(const aValue: string);
procedure set_AsEmailAddress(const aValue: string);
procedure set_AsAtTelephoneNumber(const aValue: string);
procedure set_Choice(const aValue: tAttrValueEnum);
property Choice: tAttrValueEnum read get_Choice write set_Choice;
property AsAtName: iX520name read get_AsAtName;
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;
property AsAtLocalityName: iX520LocalityName read get_AsAtLocalityName;
property AsAtStateOrProvinceName: iX520StateOrProvinceName read get_AsAtStateOrProvinceName;
property AsAtOrganizationName: iX520OrganizationName read get_AsAtOrganizationName;
property AsAtOrganizationalUnitName: iX520OrganizationalUnitName read get_AsAtOrganizationalUnitName;
property AsAtTitle: iX520Title read get_AsAtTitle;
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;
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;
inherits from tASN1TypeIdentifier
(no public members)
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;
function get_Choice: tNameEnum;
procedure set_Choice(const aValue: tNameEnum);
property Choice: tNameEnum read get_Choice write set_Choice;
property AsRdnSequence: iRDNSequence read get_AsRdnSequence;
destructor Destroy; override;
property Choice: tNameEnum read get_Choice write set_Choice;
property AsRdnSequence: iRDNSequence read get_AsRdnSequence implements iRDNSequence;