Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

stPkixAdmissions

Feature notes: PKIX / CMS implementation notes

Classes, interfaces and records

interfaceiNamingAuthority

inherits from iASN1CustomStruct

Wraps the NamingAuthority ASN.1 structure of the Common-PKI/ETSI Admission certificate extension (the body that identifies the authority which defined a profession/registration). An application obtains this interface from an iProfessionInfo or iAdmissions when reading such an extension, or fills it in when generating a qualified/professional certificate. All three fields are OPTIONAL in the ASN.1, so getters may return an empty OID/string or a nil iDirectoryString when the field was absent. Purely a certificate-content accessor; it carries no client-vs-server meaning.

function get_namingAuthorityId: ObjectIdentifier;
Getter backing namingAuthorityId; returns the OID content of field 0.
function get_namingAuthorityUrl: string;
Getter backing namingAuthorityUrl; returns the string content of field 1.
function get_namingAuthorityText: iDirectoryString;
Getter backing namingAuthorityText; resolves field 2 to an iDirectoryString (nil when that optional field is absent).
procedure set_namingAuthorityId(const aValue: ObjectIdentifier);
Setter backing namingAuthorityId; edits field 0's OID content in place.
procedure set_namingAuthorityUrl(const aValue: string);
Setter backing namingAuthorityUrl; edits field 1's string content in place.
property namingAuthorityId: ObjectIdentifier read get_namingAuthorityId write set_namingAuthorityId;
OID that uniquely identifies the naming authority. Read it to key off a known authority when validating a certificate's professional data; set it when generating the extension. Optional in the ASN.1, so it may be empty.
property namingAuthorityUrl: string read get_namingAuthorityUrl write set_namingAuthorityUrl;
URL pointing to the naming authority's directory of profession OIDs/text. Read for display or to fetch the authority's registry; set when authoring the extension. Optional, so it may be an empty string.
property namingAuthorityText: iDirectoryString read get_namingAuthorityText;
Human-readable name/description of the naming authority as a DirectoryString. Read-only here (no setter is exposed); use it for display. Returns nil when the optional field was not present in the certificate.

classtNamingAuthority

inherits from tASN1CustomStruct

implements iNamingAuthority

property namingAuthorityId: ObjectIdentifier read get_namingAuthorityId write set_namingAuthorityId; property namingAuthorityUrl: string read get_namingAuthorityUrl write set_namingAuthorityUrl; property namingAuthorityText: iDirectoryString read get_namingAuthorityText;

classtSequenceOfDirectoryString

inherits from tASN1CustomOFStruct

(no public members)

classtSequenceOfObjectIdentifier

inherits from tASN1CustomOFStruct

(no public members)

interfaceiProfessionInfo

inherits from iASN1CustomStruct

One profession statement inside an Admission certificate extension entry (the Common PKI / ISIS-MTT / ETSI TS 101 862 ProfessionInfo structure). It lists one accredited profession of the certificate holder: its display name(s), optional machine-readable profession OIDs, an optional registration number, and an optional defining naming authority. An application obtains it via iAdmissions.professionInfos when inspecting a presented certificate (relying-party / verifier side). Mostly a read-only view of the decoded ASN.1; only registrationNumber and existing professionOIDs elements have setters (in-place edits), so the required profession names and the OID sequence length cannot be authored through this interface. Several fields are OPTIONAL in the ASN.1, so accessors may return an empty count, an empty string, or a nil interface.

function get_namingAuthority: iNamingAuthority;
Getter for namingAuthority; see the property below.
function get_professionItemsCount: Integer;
Getter for professionItemsCount; see the property below.
function get_professionItems(aIndex: Integer): iDirectoryString;
Getter for professionItems; see the property below.
function get_professionOIDsCount: Integer;
Getter for professionOIDsCount; see the property below.
function get_professionOIDs(aIndex: Integer): ObjectIdentifier;
Getter for professionOIDs; see the property below.
function get_registrationNumber: string;
Getter for registrationNumber; see the property below.
function get_addProfessionInfo: iASN1CustomStruct;
Getter for addProfessionInfo; see the property below.
procedure set_professionOIDs(aIndex: Integer; const aValue: ObjectIdentifier);
Setter for professionOIDs; edits an existing OID element in place.
procedure set_registrationNumber(const aValue: string);
Setter for registrationNumber; see the property below.
property namingAuthority: iNamingAuthority read get_NamingAuthority;
Optional naming authority that defined this profession's OIDs/text. May be nil, in which case the naming authority given at the enclosing iAdmissions level (or the certificate context) applies. Read it to attribute the profession codes to a registry when validating the holder's credentials.
property professionItemsCount: Integer read get_professionItemsCount;
Number of human-readable profession names carried in professionItems (at least one; the ASN.1 requires 1..128). Iterate professionItems from 0 to professionItemsCount-1 to enumerate the holder's professional titles.
property professionItems[aIndex: Integer]: iDirectoryString read get_professionItems;
Indexed access to the profession names as DirectoryStrings (e.g. a job title or qualification such as "Notar" / "Rechtsanwalt"). Read these for display or matching when inspecting a qualified/professional certificate.
property professionOIDsCount: Integer read get_professionOIDsCount;
Number of machine-readable profession OIDs; may be zero when the optional professionOIDs sequence is absent. Iterate professionOIDs from 0 to professionOIDsCount-1.
property professionOIDs[aIndex: Integer]: ObjectIdentifier read get_professionOIDs write set_professionOIDs;
Indexed access to the profession OIDs that encode each professionItems name in machine-readable form. Prefer these over the free-text professionItems when programmatically checking whether the holder is authorised for a given role. The setter rewrites an already-present OID element in place; it does not append, so it cannot grow the sequence beyond what was decoded.
property registrationNumber: string read get_registrationNumber write set_registrationNumber;
Optional registration number the holder was assigned by the (naming) authority (a PrintableString, e.g. a bar-association membership number). Read for display/audit; set when issuing the extension. Empty when the optional field is absent.
property addProfessionInfo: iASN1CustomStruct read get_addProfessionInfo;
Optional catch-all octet-string field for authority-specific extra data that does not fit the other members, exposed as its raw iASN1CustomStruct so the application can decode any private content itself. Nil when absent; most applications can ignore it.

classtProfessionInfo

inherits from tASN1CustomStruct

implements iProfessionInfo

property namingAuthority: iNamingAuthority read get_NamingAuthority; property professionItemsCount: Integer read get_professionItemsCount; property professionItems[aIndex: Integer]: iDirectoryString read get_professionItems; property professionOIDsCount: Integer read get_professionOIDsCount; property professionOIDs[aIndex: Integer]: ObjectIdentifier read get_professionOIDs write set_professionOIDs; property registrationNumber: string read get_registrationNumber write set_registrationNumber; property addProfessionInfo: iASN1CustomStruct read get_addProfessionInfo;

classtSequenceOfProfessionInfo

inherits from tASN1CustomOFStruct

(no public members)

interfaceiAdmissions

inherits from iASN1CustomStruct

One entry of the Common PKI (formerly ISIS-MTT / ETSI TS 101 862) Admission certificate extension: a group of profession statements that all share a single admission authority and/or naming authority. An application reads iAdmissions instances through iAdmissionSyntax.contentsOfAdmissions after obtaining the parsed extension from a certificate (TExtnValue.AsAdmissions in stPkixExtension). This interface is a read-only view over the decoded ASN.1; there are no setters, so it is used when inspecting/validating a presented certificate (typically the relying-party / verifier side), not when issuing one.

function get_admissionAuthority: iGeneralName;
Getter for admissionAuthority; see the property below.
function get_namingAuthority: iNamingAuthority;
Getter for namingAuthority; see the property below.
function get_professionInfosCount: Integer;
Getter for professionInfosCount; see the property below.
function get_professionInfos(aIndex: Integer): iProfessionInfo;
Getter for professionInfos; see the property below.
property admissionAuthority: iGeneralName read get_admissionAuthority;
Optional authority that granted the admission for this entry, as a GeneralName. Present only when the certificate carried an entry-level admissionAuthority; may be nil, in which case the authority defined at the iAdmissionSyntax level (or the certificate issuer) applies. Read this when displaying or validating who accredited the holder.
property namingAuthority: iNamingAuthority read get_namingAuthority;
Optional naming authority for this entry (the body responsible for the profession OIDs/items listed here). May be nil, in which case the per-iProfessionInfo namingAuthority applies.
property professionInfosCount: Integer read get_professionInfosCount;
Number of iProfessionInfo records in this entry; iterate professionInfos from 0 to professionInfosCount-1 to enumerate the holder's professions.
property professionInfos[aIndex: Integer]: iProfessionInfo read get_professionInfos;
Indexed access to the individual profession statements (profession names, associated OIDs, registration number). Each element describes one accredited profession of the certificate holder.

classtAdmissions

inherits from tASN1CustomStruct

implements iAdmissions

property admissionAuthority: iGeneralName read get_admissionAuthority; property namingAuthority: iNamingAuthority read get_namingAuthority; property professionInfosCount: Integer read get_professionInfosCount; property professionInfos[aIndex: Integer]: iProfessionInfo read get_professionInfos;

classtSequenceOfAdmissions

inherits from tASN1CustomOFStruct

(no public members)

interfaceiAdmissionSyntax

inherits from iASN1CustomStruct

Decoded value of the Common PKI (ISIS-MTT / ETSI TS 101 862) Admission certificate extension (OID 1.3.36.8.3.3, id-commonpki-at-admission). An application obtains it via TExtnValue.AsAdmissions in stPkixExtension after locating the extension on a certificate, then reads the admission authority and the contained iAdmissions entries. This is a read-only view of the parsed ASN.1, so it is used on the verifier / relying-party side to inspect the professional accreditations asserted for the holder (common in German/European qualified-signature and healthcare PKIs), not to build a new extension.

function get_admissionAuthority: iGeneralName;
Getter for admissionAuthority; see the property below.
function get_contentsOfAdmissionsCount: Integer;
Getter for contentsOfAdmissionsCount; see the property below.
function get_contentsOfAdmissions(aIndex: Integer): iAdmissions;
Getter for contentsOfAdmissions; see the property below.
property admissionAuthority: iGeneralName read get_admissionAuthority;
Optional top-level admission authority for the whole extension, as a GeneralName. May be nil; when nil, each iAdmissions entry may still carry its own admissionAuthority, otherwise the certificate issuer is implied. Read this to learn which body accredited the certificate holder overall.
property contentsOfAdmissionsCount: Integer read get_contentsOfAdmissionsCount;
Number of iAdmissions entries; iterate contentsOfAdmissions from 0 to contentsOfAdmissionsCount-1 to walk every admission group in the extension.
property contentsOfAdmissions[aIndex: Integer]: iAdmissions read get_contentsOfAdmissions;
Indexed access to the admission entries. Each iAdmissions groups the professions that share one admission/naming authority; enumerate them to display or validate all professional roles asserted for the holder.

classtAdmissionSyntax

inherits from tASN1CustomStruct

implements iAdmissionSyntax

property admissionAuthority: iGeneralName read get_admissionAuthority; property contentsOfAdmissionsCount: Integer read get_contentsOfAdmissionsCount; property contentsOfAdmissions[aIndex: Integer]: iAdmissions read get_contentsOfAdmissions;