Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

stPkixExtension

Feature notes: PKIX / CMS implementation notes

Classes, interfaces and records

interfaceiNoticeReference

(no public members)

interfaceiDistributionPointName

(no public members)

interfaceiDisplayText

(no public members)

interfaceiQualifier

(no public members)

interfaceiExtnValue

(no public members)

interfaceiExtKeyUsageSyntax

inherits from iASN1CustomStruct

Decoded form of the Extended Key Usage extension (RFC 5280 4.2.1.12): the ordered list of purpose OIDs (KeyPurposeId) for which the certified key may be used, such as id-kp-serverAuth or id-kp-clientAuth. An application reaches it via iExtnValue.AsCeExtKeyUsage - when verifying a peer it checks that the required purpose appears (e.g. a TLS server cert must list serverAuth), and when generating a cert it appends the intended purpose OIDs here.

function get_Items(aIndex: Integer): ObjectIdentifier;
Internal accessor for Items; use the property instead.
procedure set_Items(aIndex: Integer; const aValue: ObjectIdentifier);
Internal accessor for Items; use the property instead.
property Items[aIndex: Integer]: ObjectIdentifier read get_Items write set_Items; default;
The purpose OIDs, indexed positionally. Iterate 0..count-1 (via the inherited item count) to check whether a needed KeyPurposeId is present when validating, or assign entries to declare permitted purposes when authoring the extension.

classtExtKeyUsageSyntax

inherits from tASN1CustomOFStruct

implements iExtKeyUsageSyntax

property Items[aIndex: Integer]: ObjectIdentifier read get_Items write set_Items; default;

interfaceiAuthorityKeyIdentifier

inherits from iASN1CustomStruct

Decoded form of the Authority Key Identifier extension (RFC 5280 4.2.1.1). An application typically obtains this via iExtnValue.AsCeAuthorityKeyIdentifier when inspecting a certificate to discover which issuer key signed it, so it can locate the matching CA certificate during path building/validation. The value is issuer-supplied and read-only here.

function get_authorityCertIssuer: iGeneralNames;
Internal accessor for authorityCertIssuer; use the property instead.
function get_authorityCertSerialNumber: iASN1Integer;
Internal accessor for authorityCertSerialNumber; use the property instead.
function get_keyIdentifier: iASN1OctetString;
Internal accessor for keyIdentifier; use the property instead.
property keyIdentifier: iASN1OctetString read get_keyIdentifier;
The key identifier of the issuer's public key (usually the SHA-1 hash of the issuer's SubjectPublicKeyInfo). This is the common form; match it against a candidate issuer's Subject Key Identifier when selecting which CA certificate to verify this certificate against.
property authorityCertIssuer: iGeneralNames read get_authorityCertIssuer;
The optional issuer name form of the identifier (a GeneralNames naming the CA certificate's issuer). Present only when the certificate identifies its signing key by issuer+serial rather than by keyIdentifier.
property authorityCertSerialNumber: iASN1Integer read get_authorityCertSerialNumber;
The optional serial number of the issuer certificate, paired with authorityCertIssuer to name the exact CA certificate that signed this one.

interfaceiMscEnrolledAgainst

inherits from iASN1CustomStruct

The same pair RFC 9883's privateKeyPossessionStatement names its signer by, so what the certificate records is what the CA verified rather than a restatement of it. Declared here rather than shared with the CMS IssuerAndSerialNumber of the same shape: this unit sits below the CMS units and reaching up for that type would close a cycle.

function get_issuer: iName;
Internal accessor for issuer; use the property instead.
function get_serialNumber: iASN1Integer;
Internal accessor for serialNumber; use the property instead.
property issuer: iName read get_issuer;
The issuer of the signature certificate this KEM certificate was enrolled against.
property serialNumber: iASN1Integer read get_serialNumber;
That certificate's serial number. Issuer and serial together name it exactly, which is what the possession statement named and what the CA checked the request's signature against.

classtMscEnrolledAgainst

inherits from tASN1CustomStruct

implements iMscEnrolledAgainst

property issuer: iName read get_issuer; property serialNumber: iASN1Integer read get_serialNumber;

classtAuthorityKeyIdentifier

inherits from tASN1CustomStruct

implements iAuthorityKeyIdentifier

property keyIdentifier: iASN1OctetString read get_keyIdentifier; property authorityCertIssuer: iGeneralNames read get_authorityCertIssuer; property authorityCertSerialNumber: iASN1Integer read get_authorityCertSerialNumber;

interfaceiPrimaryKeyUsageRestriction

inherits from iASN1CustomStruct

Decoded form of the (legacy X.509) PrimaryKeyUsageRestriction extension: a SEQUENCE of a certPolicySet (a set of policy OIDs the restriction applies to) and a restrictedKeyUsage bit mask. An application reaches it via iExtnValue.AsCePrimaryKeyUsageRestriction after locating the evCePrimaryKeyUsageRestriction extension; the certificate code in stPkixCert falls back to restrictedKeyUsage as the effective key usage when no standard KeyUsage extension is present.

function get_certPolicySet(aIndex: Integer): ObjectIdentifier;
Internal accessor for a single certPolicySet entry; index the certPolicySet property instead.
function get_certPolicySetCount: Integer;
Internal accessor for certPolicySetCount; read the property instead.
function get_restrictedKeyUsage: tKeyUsage;
Internal accessor for restrictedKeyUsage; read the property instead.
procedure set_certPolicySet(aIndex: Integer; const aValue: ObjectIdentifier);
Internal setter for a single certPolicySet entry; assign the certPolicySet property instead.
procedure set_restrictedKeyUsage(const aValue: tKeyUsage);
Internal setter for restrictedKeyUsage; assign the property instead.
property certPolicySetCount: Integer read get_certPolicySetCount;
Number of policy OIDs in the certPolicySet (the first SEQUENCE field); valid certPolicySet indices run 0..certPolicySetCount-1.
property certPolicySet[aIndex: Integer]: ObjectIdentifier read get_certPolicySet write set_certPolicySet;
Indexed access to the policy OIDs the restriction is scoped to. Reads and writes the OID at aIndex within the certPolicySet SEQUENCE.
property restrictedKeyUsage: tKeyUsage read get_restrictedKeyUsage write set_restrictedKeyUsage;
The key-usage bit mask this extension imposes (the second field, a BIT STRING read as a tKeyUsage set). stPkixCert uses it as the certificate's effective key usage when the standard KeyUsage extension is absent.

classtSequenceOfObjectIdentifier

inherits from tASN1CustomOFStruct

(no public members)

classtPrimaryKeyUsageRestriction

inherits from tASN1CustomStruct

implements iPrimaryKeyUsageRestriction

property certPolicySetCount: Integer read get_certPolicySetCount; property certPolicySet[aIndex: Integer]: ObjectIdentifier read get_certPolicySet write set_certPolicySet; property restrictedKeyUsage: tKeyUsage read get_restrictedKeyUsage write set_restrictedKeyUsage;

interfaceiGeneralSubtree

inherits from iASN1CustomStruct

One GeneralSubtree entry of a Name Constraints extension (RFC 5280 4.2.1.10): a base GeneralName defining a name subtree, together with the (unused-in-practice) minimum/maximum depth fields. An application meets these while validating a certification path, reached through iNameConstraints.permittedSubtrees / excludedSubtrees; the Applies and AppliesBase tests are invoked by the path-validation code rather than called directly by most applications.

function get_base: iGeneralName;
Internal accessor for base; read the base property instead.
function get_maximum: Integer;
Internal accessor for maximum; read the maximum property instead.
function get_minimum: Integer;
Internal accessor for minimum; read the minimum property instead.
procedure set_maximum(const aValue: Integer);
Internal setter for maximum; assign the maximum property instead.
procedure set_minimum(const aValue: Integer);
Internal setter for minimum; assign the minimum property instead.
function Applies(aName : iName; aAltName: iGeneralNames; out aMissing: Boolean) : Boolean;
Tests whether the name being validated falls within this subtree. Given the certificate subject (aName) and its SubjectAltName list (aAltName), returns True when a name of the same GeneralName kind as base matches the subtree, applying the RFC 5280 host/domain and email matching rules. Full description »
function AppliesBase(aBase: iGeneralName): Boolean;
Tests whether aBase (the base of another GeneralSubtree) falls within this subtree's base. Used when combining constraints from several CAs in a chain to decide subtree overlap; see iGeneralSubtrees.Intersect/Union.
property base: iGeneralName read get_base;
The GeneralName that defines the name subtree (a DNS name, email address, X.400 address, directory name, URI, etc.). Its Choice selects which matching rule Applies/AppliesBase use.
property minimum: Integer read get_minimum write set_minimum;
The minimum field of the GeneralSubtree (RFC 5280 fixes it at 0). Present for wire fidelity; not used by the matching logic.
property maximum: Integer read get_maximum write set_maximum;
The maximum field of the GeneralSubtree (RFC 5280 requires it absent). Present for wire fidelity; not used by the matching logic.

classtGeneralSubtree

inherits from tASN1CustomStruct

implements iGeneralSubtree

function Applies(aName : iName; aAltName: iGeneralNames; out aMissing: Boolean) : Boolean; function AppliesBase(aBase: iGeneralName): Boolean; property base: iGeneralName read get_base; property minimum: Integer read get_minimum write set_minimum; property maximum: Integer read get_maximum write set_maximum;

interfaceiAccessDescription

inherits from iASN1CustomStruct

One entry of the Authority Information Access (or Subject Information Access) certificate extension: a pair of an access-method OID and the location where that service is reachable. An application typically obtains these indirectly by walking iAuthorityInfoAccessSyntax.Items, then inspects accessMethod to decide what accessLocation points at (e.g. an OCSP responder or a CA-certificate download URL).

function get_accessLocation: iGeneralName;
Internal accessor for accessLocation; call the accessLocation property.
function get_accessMethod: ObjectIdentifier;
Internal accessor for accessMethod; call the accessMethod property.
procedure set_accessMethod(const aValue: ObjectIdentifier);
Internal setter for accessMethod; assign the accessMethod property.
property accessMethod: ObjectIdentifier read get_accessMethod write set_accessMethod;
The OID naming the kind of service this entry describes. Compare it against constants such as id_ad_ocsp (an OCSP responder) or id_ad_caIssuers (where to fetch the issuer's certificate) to interpret accessLocation. The OCSP client uses exactly this test to locate a responder URL before deciding whether to skip an entry.
property accessLocation: iGeneralName read get_accessLocation;
Where the service named by accessMethod lives. For AIA/OCSP this is almost always a gnUniformResourceIdentifier GeneralName, so an app reads accessLocation.AsUniformResourceIdentifier after confirming the Choice.

classtAccessDescription

inherits from tASN1CustomStruct

implements iAccessDescription

property accessMethod: ObjectIdentifier read get_accessMethod write set_accessMethod; property accessLocation: iGeneralName read get_accessLocation;

interfaceiAuthorityInfoAccessSyntax

inherits from iASN1CustomStruct

Decoded form of the Authority Information Access extension (RFC 5280 id-pe-authorityInfoAccess): a sequence of iAccessDescription entries. An application reaches it via iExtnValue.AsPeAuthorityInfoAccess after locating the evPeAuthorityInfoAccess extension on a certificate, then iterates Items (0..ItemCount-1) to find, for example, the OCSP responder URL or the caIssuers download location. The bundled OCSP client walks this exact list.

function get_Items(aIndex: Integer): iAccessDescription;
Internal accessor for Items; index the Items property instead.
property Items[aIndex: Integer]: iAccessDescription read get_Items; default;
Default indexed access to the individual AccessDescription entries; combine with the inherited ItemCount to enumerate every entry.

classtAuthorityInfoAccessSyntax

inherits from tASN1CustomOFStruct

implements iAuthorityInfoAccessSyntax

property Items[aIndex: Integer]: iAccessDescription read get_Items; default;

classtSdaAttrValue

inherits from tAttrValue

A value of an attribute of a SubjectDirectoryAttributes extension: of the Name attribute types stPkixName lists, the type it lists for them, and of any other type a value of type ANY - RFC 5280's AttributeValue - where a Name attribute of such a type takes a DirectoryString.

(no public members)

classtSetOfAttrValue

inherits from tASN1CustomOFStruct

(no public members)

classtSetOfAttrValueInformationObject

inherits from tASN1InformationObject

procedure SetField(const aName: string; aField: iASN1Base); override; function GetField(const aName: string): iASN1Base; override; function GetFieldClass(const aField: iASN1Base): tASN1StructClass; override; procedure Update(const aField: iASN1Base); override;

interfaceiAttribute

inherits from iASN1CustomStruct

A generic X.501 Attribute: an attribute-type OID paired with a SET of one or more values of the type that OID implies. Applications meet it when reading or building a certificate's SubjectDirectoryAttributes extension (iSubjectDirectoryAttributes.Items) or similar attribute collections; set attrType first, then populate the values.

function get_attrType: ObjectIdentifier;
Internal accessor for attrType; use the attrType property.
function get_attrValues(aIndex: Integer): iAttrValue;
Internal accessor for attrValues; index the attrValues property.
function get_attrValuesCount: Integer;
Internal accessor for attrValuesCount; read the attrValuesCount property.
function get_attrValuesUnique(aIndex: tAttrValueEnum): iAttrValue;
Internal accessor for attrValuesUnique; index the attrValuesUnique property.
procedure set_attrType(const aValue: ObjectIdentifier);
Internal setter for attrType; assign the attrType property.
property attrType: ObjectIdentifier read get_attrType write set_attrType;
The OID that identifies what kind of attribute this is and thus how each value should be interpreted. Assign it before adding values when building an attribute; read it to dispatch on attribute type when parsing.
property attrValuesCount: Integer read get_attrValuesCount;
How many values are present in this attribute's value SET; use as the upper bound (0..attrValuesCount-1) when iterating attrValues.
property attrValues[aIndex: Integer]: iAttrValue read get_attrValues;
Positional access to the raw values by index. Use this to walk every value regardless of its concrete type.
property attrValuesUnique[aIndex: tAttrValueEnum]: iAttrValue read get_attrValuesUnique;
Type-driven access: pass a tAttrValueEnum selector and receive the value already narrowed to the corresponding known attribute type (the implementation resolves it through the selected-item lookup). Convenient when you know the expected attribute and want its typed value directly rather than iterating attrValues by index.

classtAttribute

inherits from tASN1CustomStruct

implements iAttribute

property attrType: ObjectIdentifier read get_attrType write set_attrType; property attrValuesCount: Integer read get_attrValuesCount; property attrValues[aIndex: Integer]: iAttrValue read get_attrValues; property attrValuesUnique[aIndex: tAttrValueEnum]: iAttrValue read get_attrValuesUnique;

interfaceiSubjectDirectoryAttributes

inherits from iASN1CustomStruct

Decoded form of the SubjectDirectoryAttributes extension (RFC 5280 4.2.1.8): a SEQUENCE of X.501 Attribute entries carrying identity attributes about the subject (date of birth, place of birth, gender, country of citizenship, etc.). An application reaches it via iExtnValue.AsCeSubjectDirectoryAttributes when reading a certificate, or builds one when authoring a certificate/CSR. Index it positionally with Items to walk every attribute, or by attribute type with the default UniqueItems.

function get_Items(aIndex: Integer): iAttribute;
Internal accessor for Items; use the Items property instead.
function get_UniqueItems(aIndex: tAttrValueEnum): iAttrValue;
Internal accessor for UniqueItems; use the UniqueItems property instead.
property Items[aIndex: Integer]: iAttribute read get_Items;
Positional access to the contained X.501 attributes in encoding order. Iterate 0..count-1 to enumerate every attribute present.
property UniqueItems[aIndex: tAttrValueEnum]: iAttrValue read get_UniqueItems; default;
Type-driven access: pass a tAttrValueEnum selector and receive the value of the correspondingly typed attribute directly (the implementation resolves it through the selected-item lookup), rather than iterating Items by index.

classtSubjectDirectoryAttributes

inherits from tASN1CustomOFStruct

implements iSubjectDirectoryAttributes

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

classtReasonFlagsBitString

inherits from tASN1BitString

(no public members)

interfaceiDistributionPoint

inherits from iASN1CustomStruct

Decoded form of a single DistributionPoint entry (RFC 5280 4.2.1.13) within the CRL Distribution Points extension. An application reaches these through iCRLDistPointsSyntax.Items while doing revocation checking, to discover where and how to fetch the CRL that would cover a certificate. This is read on whichever side performs certificate-path validation (a TLS client validating a server certificate, or a server validating a client certificate for mTLS); the fields are populated by decoding, not something an app usually sets.

function get_cRlissuer: iGeneralNames;
Internal accessor for cRlissuer; read the cRlissuer property instead.
function get_distributionPoint: iDistributionPointName;
Internal accessor for distributionPoint; read the distributionPoint property.
function get_reasons: tReasonFlags;
Internal accessor for reasons; read the reasons property instead.
procedure set_reasons(const aValue: tReasonFlags);
Internal setter for reasons; assign the reasons property instead.
property distributionPoint: iDistributionPointName read get_distributionPoint;
The location(s) of the CRL for this distribution point, as a CHOICE of either a full GeneralNames list (typically an LDAP or HTTP URI) or a name relative to the CRL issuer. Read this during revocation checking to obtain the URL from which to download the covering CRL.
property reasons: tReasonFlags read get_reasons write set_reasons;
The set of revocation reasons this distribution point's CRL covers (KeyCompromise, CACompromise, etc.). An empty set means the CRL covers all reasons. Applications inspect this only when a certificate is scoped by several distribution points each restricted to different reason codes.
property cRlissuer: iGeneralNames read get_cRlissuer;
The DN of the entity that issues this CRL when it differs from the certificate's own issuer (an indirect CRL). Read it during revocation checking to know which issuer's CRL to look for; usually absent, meaning the certificate issuer also issues the CRL.

classtDistributionPoint

inherits from tASN1CustomStruct

implements iDistributionPoint

property distributionPoint: iDistributionPointName read get_distributionPoint; property reasons: tReasonFlags read get_reasons write set_reasons; property cRlissuer: iGeneralNames read get_cRlissuer;

interfaceiCRLDistPointsSyntax

inherits from iASN1CustomStruct

Decoded form of the CRL Distribution Points extension (RFC 5280 4.2.1.13), a SEQUENCE of DistributionPoint entries. An application reads this via iExtnValue.AsCeCrldistributionPoints during revocation checking to learn from where the CRL covering this certificate can be fetched.

function get_Items(aIndex: Integer): iDistributionPoint;
Internal accessor for Items; index the Items property instead.
property Items[aIndex: Integer]: iDistributionPoint read get_Items; default;
Default indexed access to each DistributionPoint. Walk these (0..ItemCount-1) to collect the CRL locations/reason-scopes offered for this certificate.

classtCRLDistPointsSyntax

inherits from tASN1CustomOFStruct

implements iCRLDistPointsSyntax

property Items[aIndex: Integer]: iDistributionPoint read get_Items; default;

interfaceiPolicyConstraints

inherits from iASN1CustomStruct

Decoded form of the Policy Constraints extension (RFC 5280 4.2.1.11), which a CA certificate uses to constrain policy processing further down the path. Both fields are SkipCerts counts (number of certificates in the path that may still appear before the constraint takes effect). An application reaches it via iExtnValue.AsCePolicyConstraints during path validation, or writes it when issuing a CA certificate.

function get_inhibitPolicyMapping: Integer;
Internal accessor for inhibitPolicyMapping; use the property instead.
function get_requireExplicitPolicy: Integer;
Internal accessor for requireExplicitPolicy; use the property instead.
procedure set_inhibitPolicyMapping(const aValue: Integer);
Internal setter for inhibitPolicyMapping; assign the property instead.
procedure set_requireExplicitPolicy(const aValue: Integer);
Internal setter for requireExplicitPolicy; assign the property instead.
property requireExplicitPolicy: Integer read get_requireExplicitPolicy write set_requireExplicitPolicy;
The requireExplicitPolicy SkipCerts count: the number of additional certificates that may appear in the path before an explicit acceptable policy is required for every certificate. Reads/writes the first INTEGER field of the extension.
property inhibitPolicyMapping: Integer read get_inhibitPolicyMapping write set_inhibitPolicyMapping;
The inhibitPolicyMapping SkipCerts count: the number of additional certificates that may appear in the path before policy mapping is no longer permitted. Reads/writes the second INTEGER field of the extension.

classtPolicyConstraints

inherits from tASN1CustomStruct

implements iPolicyConstraints

property requireExplicitPolicy: Integer read get_requireExplicitPolicy write set_requireExplicitPolicy; property inhibitPolicyMapping: Integer read get_inhibitPolicyMapping write set_inhibitPolicyMapping;

interfaceiGeneralSubtrees

inherits from iASN1CustomStruct

A GeneralSubtrees value: the SEQUENCE OF GeneralSubtree that forms either the permittedSubtrees or the excludedSubtrees field of a Name Constraints extension (RFC 5280 4.2.1.10). Applications reach it via iNameConstraints.permittedSubtrees / excludedSubtrees during path validation; Intersect and Union are the set operations the path-validation code uses to accumulate constraints down a certificate chain.

function get_Items(aIndex: Integer): iGeneralSubtree;
Internal accessor for Items; index the Items property instead.
procedure Intersect(aIntersection: iGeneralSubTrees);
Reduces aIntersection in place to the subtrees it shares with this list, deleting from aIntersection any subtree not covered by (or equal to) one here. Used to combine permitted subtrees down a chain: a name must lie in every CA's permitted set, so the running permitted set is intersected.
procedure Union(aUnion: iGeneralSubTrees);
Merges this list's subtrees into aUnion in place, appending any subtree here that aUnion does not already cover. Used to combine excluded subtrees down a chain: a name is barred if any CA excludes it, so the running excluded set grows by union.
property Items[aIndex: Integer]: iGeneralSubtree read get_Items; default;
Default indexed access to each GeneralSubtree entry; walk 0..ItemCount-1 to enumerate the subtrees in this permitted or excluded set.

classtGeneralSubtrees

inherits from tASN1CustomOFStruct

implements iGeneralSubtrees

procedure Intersect(aIntersection: iGeneralSubTrees); procedure Union(aUnion: iGeneralSubTrees); property Items[aIndex: Integer]: iGeneralSubtree read get_Items; default;

interfaceiNameConstraints

inherits from iASN1CustomStruct

Decoded form of the Name Constraints extension (RFC 5280 4.2.1.10), which a CA certificate uses to restrict the name space of certificates issued beneath it. It holds a permittedSubtrees and an excludedSubtrees list. An application reaches it via iExtnValue.AsCeNameConstraints; the bundled path-validation code (StreamSec.DSI.PkixKeyFilter) reads the constraint off each CA in the chain, accumulates them with Combine, and enforces them on the target certificate with Verify. This runs on whichever side validates the peer certificate (a TLS client checking a server cert, or a server checking a client cert for mTLS).

function get_excludedSubtrees: iGeneralSubtrees;
Internal accessor for excludedSubtrees; read the property instead.
function get_permittedSubtrees: iGeneralSubtrees;
Internal accessor for permittedSubtrees; read the property instead.
procedure Combine(aCombination: iNameConstraints);
Folds a subordinate CA's constraints (aCombination) into this one in place: excluded subtrees are unioned (a name barred by any CA stays barred) and permitted subtrees are intersected (a name must lie inside every CA's permitted set). Called down the chain so this instance ends up holding the effective constraints for the leaf.
function Verify(aName : iName; aAltName: iGeneralNames) : Boolean;
Checks a certificate's subject name (aName) and SubjectAltName list (aAltName, may be nil) against the accumulated constraints. Returns True when the name is inside the permitted subtrees (per name kind) and outside every excluded subtree; False when a name violates them. This is the enforcement call the path validator makes after Combine.
property permittedSubtrees: iGeneralSubtrees read get_permittedSubtrees;
The permitted-subtrees field: names of a given kind are acceptable only if they fall within one of these subtrees. An empty list imposes no permitted restriction.
property excludedSubtrees: iGeneralSubtrees read get_excludedSubtrees;
The excluded-subtrees field: any name falling within one of these subtrees is rejected, overriding the permitted set. An empty list imposes no exclusion.

classtNameConstraints

inherits from tASN1CustomStruct

implements iNameConstraints

procedure Combine(aCombination: iNameConstraints); function Verify(aName : iName; aAltName: iGeneralNames) : Boolean; property permittedSubtrees: iGeneralSubtrees read get_permittedSubtrees; property excludedSubtrees: iGeneralSubtrees read get_excludedSubtrees;

interfaceiBasicConstraints

inherits from iASN1CustomStruct

Decoded form of the Basic Constraints extension (RFC 5280 4.2.1.9). An application reads this (via iExtnValue.AsCeBasicConstraints) during path validation to decide whether a certificate may act as a CA, and writes it when generating a CA or end-entity certificate.

function get_cA: Boolean;
Internal accessor for cA; use the cA property.
function get_pathLenConstraint: Integer;
Internal accessor for pathLenConstraint; use the property.
procedure set_cA(const aValue: Boolean);
Internal setter for cA; assign the cA property.
procedure set_pathLenConstraint(const aValue: Integer);
Internal setter for pathLenConstraint; assign the property.
property cA: Boolean read get_cA write set_cA;
True if the subject is a CA and its public key may verify certificate signatures. Set True when building a CA certificate; a validator rejects a certificate used as an issuer when this is False.
property pathLenConstraint: Integer read get_pathLenConstraint write set_pathLenConstraint;
Maximum number of intermediate CA certificates that may follow this one in a certification path. When reading, get_pathLenConstraint returns MaxInt for a CA with no explicit limit and -1 for a non-CA (i.e. unconstrained / not applicable); set a non-negative value when issuing a CA certificate that must cap the sub-CA chain depth.

classtBasicConstraints

inherits from tASN1CustomStruct

implements iBasicConstraints

property cA: Boolean read get_cA write set_cA; property pathLenConstraint: Integer read get_pathLenConstraint write set_pathLenConstraint;

interfaceiPolicyMapping

inherits from iASN1CustomStruct

One entry of the PolicyMappings extension (RFC 5280 4.2.1.5): a pair of policy OIDs stating that the CA's issuerDomainPolicy is considered equivalent to the subject CA's subjectDomainPolicy. An application reaches these by iterating iPolicyMappings.Items (obtained via iExtnValue.AsCePolicyMappings), or populates them when issuing a cross-certificate; the path-validation code consults them when mapping policies down a certification path.

function get_issuerDomainPolicy: ObjectIdentifier;
Internal accessor for issuerDomainPolicy; use the property instead.
function get_subjectDomainPolicy: ObjectIdentifier;
Internal accessor for subjectDomainPolicy; use the property instead.
procedure set_issuerDomainPolicy(const aValue: ObjectIdentifier);
Internal setter for issuerDomainPolicy; assign the property instead.
procedure set_subjectDomainPolicy(const aValue: ObjectIdentifier);
Internal setter for subjectDomainPolicy; assign the property instead.
property issuerDomainPolicy: ObjectIdentifier read get_issuerDomainPolicy write set_issuerDomainPolicy;
The policy OID recognised in the issuer's domain (the first field of the mapping).
property subjectDomainPolicy: ObjectIdentifier read get_subjectDomainPolicy write set_subjectDomainPolicy;
The policy OID in the subject CA's domain that issuerDomainPolicy maps to (the second field of the mapping).

classtPolicyMapping

inherits from tASN1CustomStruct

implements iPolicyMapping

property issuerDomainPolicy: ObjectIdentifier read get_issuerDomainPolicy write set_issuerDomainPolicy; property subjectDomainPolicy: ObjectIdentifier read get_subjectDomainPolicy write set_subjectDomainPolicy;

interfaceiPolicyMappings

inherits from iASN1CustomStruct

Decoded form of the PolicyMappings extension (RFC 5280 4.2.1.5): a SEQUENCE of iPolicyMapping entries. An application reaches it via iExtnValue.AsCePolicyMappings after locating the evCePolicyMappings extension on a CA certificate, then iterates Items (0..ItemCount-1) to read each issuer-to-subject policy equivalence.

function get_Items(aIndex: Integer): iPolicyMapping;
Internal accessor for Items; index the Items property instead.
property Items[aIndex: Integer]: iPolicyMapping read get_Items; default;
Default indexed access to the individual PolicyMapping entries; combine with the inherited ItemCount to enumerate every mapping.

classtPolicyMappings

inherits from tASN1CustomOFStruct

implements iPolicyMappings

property Items[aIndex: Integer]: iPolicyMapping read get_Items; default;

interfaceiUserNotice

inherits from iASN1CustomStruct

Decoded form of the UserNotice qualifier (RFC 5280 4.2.1.4), the value of a Certificate Policies qualifier of type id-qt-unotice. It carries an optional noticeRef pointing to an out-of-band notice statement and an optional explicitText holding the notice text inline. An application reaches it via iQualifier.AsQtUnotice when reading policy qualifiers in the Certificate Policies extension; both fields may be absent.

function get_explicitText: iDisplayText;
Internal accessor for explicitText; read the explicitText property.
function get_noticeRef: iNoticeReference;
Internal accessor for noticeRef; read the noticeRef property.
property noticeRef: iNoticeReference read get_noticeRef;
The optional noticeRef, naming an organization plus notice numbers that reference a textual notice held out of band; may be nil when the notice is given inline via explicitText instead.
property explicitText: iDisplayText read get_explicitText;
The optional explicit notice text, as a DisplayText to show to a relying party; may be nil when only a noticeRef is supplied.

classtUserNotice

inherits from tASN1CustomStruct

implements iUserNotice

property noticeRef: iNoticeReference read get_noticeRef; property explicitText: iDisplayText read get_explicitText;

classtSequenceOfInteger

inherits from tASN1CustomOFStruct

(no public members)

interfaceiNoticeReference

inherits from iASN1CustomStruct

Decoded form of the NoticeReference structure (RFC 5280 4.2.1.4), the optional noticeRef field of a UserNotice policy qualifier. It names an organization (a DisplayText) plus a list of notice numbers that together reference a textual notice statement held out of band. An application reaches it via iUserNotice.noticeRef when reading the Certificate Policies extension.

function get_noticeNumber(aIndex: Integer): Int64;
Internal accessor for a single noticeNumbers entry; index the noticeNumbers property instead.
function get_noticeNumbersCount: Integer;
Internal accessor for noticeNumbersCount; read the property instead.
function get_organization: iDisplayText;
Internal accessor for organization; read the organization property.
property organization: iDisplayText read get_organization;
The organization named by this notice reference, as a DisplayText.
property noticeNumbersCount: Integer read get_noticeNumbersCount;
Number of entries in the noticeNumbers list (the SEQUENCE OF INTEGER field); valid noticeNumbers indices run 0..noticeNumbersCount-1.
property noticeNumbers[aIndex: Integer]: Int64 read get_noticeNumber;
Indexed access to the notice numbers referenced within the named organization.

classtNoticeReference

inherits from tASN1CustomStruct

implements iNoticeReference

property organization: iDisplayText read get_organization; property noticeNumbersCount: Integer read get_noticeNumbersCount; property noticeNumbers[aIndex: Integer]: Int64 read get_noticeNumber;

interfaceiPolicyQualifierInfo

inherits from iASN1CustomStruct

Decoded form of a single PolicyQualifierInfo (RFC 5280 4.2.1.4) within a PolicyInformation entry of the Certificate Policies extension: a policyQualifierId OID that selects the qualifier kind (id-qt-cps or id-qt-unotice) plus the matching qualifier value. An application reaches it by iterating iPolicyInformation.policyQualifiers, then reads qualifier to obtain the CPS URI or user notice.

function get_policyQualifierId: ObjectIdentifier;
Internal accessor for policyQualifierId; use the property instead.
function get_qualifier: iQualifier;
Internal accessor for qualifier; use the qualifier property instead.
procedure set_policyQualifierId(const aValue: ObjectIdentifier);
Internal setter for policyQualifierId; assign the property instead.
property policyQualifierId: ObjectIdentifier read get_policyQualifierId write set_policyQualifierId;
The OID identifying which kind of qualifier this is (typically id-qt-cps or id-qt-unotice); it determines how qualifier should be interpreted.
property qualifier: iQualifier read get_qualifier;
The qualifier value itself, exposed as an iQualifier whose concrete choice (CPS URI or UserNotice) corresponds to policyQualifierId.

classtPolicyQualifierInfo

inherits from tASN1CustomStruct

implements iPolicyQualifierInfo

property policyQualifierId: ObjectIdentifier read get_policyQualifierId write set_policyQualifierId; property qualifier: iQualifier read get_qualifier;

interfaceiPolicyInformation

inherits from iASN1CustomStruct

Decoded form of a single PolicyInformation entry (RFC 5280 4.2.1.4) within the Certificate Policies extension: a policyIdentifier OID plus an optional SEQUENCE of policy qualifiers (CPS URI and/or user notice). An application reaches it via iCertificatePolicies.Items when reading a certificate's asserted policies, or populates it when issuing a certificate.

function get_policyIdentifier: ObjectIdentifier;
Internal accessor for policyIdentifier; use the property instead.
function get_policyQualifiers(aIndex: Integer): iPolicyQualifierInfo;
Internal accessor for a single policyQualifiers entry; index the policyQualifiers property instead.
function get_policyQualifiersCount: Integer;
Internal accessor for policyQualifiersCount; read the property instead.
function get_policyQualifiersUnique(aIndex: tQualifierEnum): iQualifier;
Internal accessor for policyQualifiersUnique; index the property instead.
procedure set_policyIdentifier(const aValue: ObjectIdentifier);
Internal setter for policyIdentifier; assign the property instead.
property policyIdentifier: ObjectIdentifier read get_policyIdentifier write set_policyIdentifier;
The policy OID this entry asserts (the CertPolicyId). Reads/writes the first field of the entry.
property policyQualifiersCount: Integer read get_policyQualifiersCount;
Number of entries in the policyQualifiers list; valid policyQualifiers indices run 0..policyQualifiersCount-1. Zero when the entry carries no qualifiers.
property policyQualifiers[aIndex: Integer]: iPolicyQualifierInfo read get_policyQualifiers;
Indexed positional access to each PolicyQualifierInfo (id plus qualifier) attached to this policy.
property policyQualifiersUnique[aIndex: tQualifierEnum]: iQualifier read get_policyQualifiersUnique;
Access to the qualifier of a given kind by qualifier enum rather than by position: returns the matching qualifier, or (unless the structure is read-only) adds and returns a new one of that kind if none is present.

classtSequenceOfPolicyQualifierInfo

inherits from tASN1CustomOFStruct

(no public members)

classtPolicyInformation

inherits from tASN1CustomStruct

implements iPolicyInformation

property policyIdentifier: ObjectIdentifier read get_policyIdentifier write set_policyIdentifier; property policyQualifiersCount: Integer read get_policyQualifiersCount; property policyQualifiers[aIndex: Integer]: iPolicyQualifierInfo read get_policyQualifiers; property policyQualifiersUnique[aIndex: tQualifierEnum]: iQualifier read get_policyQualifiersUnique;

interfaceiCertificatePolicies

inherits from iASN1CustomStruct

Decoded form of the Certificate Policies extension (RFC 5280 4.2.1.4), a SEQUENCE of PolicyInformation entries. An application reads this via iExtnValue.AsCeCertificatePolicies to discover which issuance policy OIDs (and optional qualifiers such as CPS URIs / user notices) a certificate asserts, e.g. to enforce an acceptable-policy set during path validation.

function get_Items(aIndex: Integer): iPolicyInformation;
Internal accessor for Items; index the Items property instead.
property Items[aIndex: Integer]: iPolicyInformation read get_Items; default;
Default indexed access to each PolicyInformation entry; iterate 0..ItemCount-1 to read every asserted policy OID and its qualifiers.

classtCertificatePolicies

inherits from tASN1CustomOFStruct

implements iCertificatePolicies

property Items[aIndex: Integer]: iPolicyInformation read get_Items; default;

interfaceiPrivateKeyUsagePeriod

inherits from iASN1CustomStruct

Decoded form of the PrivateKeyUsagePeriod extension (RFC 3280 4.2.1.4, an extension retained from earlier PKIX and no longer defined in RFC 5280): the interval during which the certified private key may be used to sign, which can be shorter than the certificate's own validity. Both bounds are optional. An application reaches it via iExtnValue.AsCePrivateKeyUsagePeriod when reading a certificate, or sets the bounds when authoring one.

function get_notAfter: tDateTime;
Internal accessor for notAfter; use the notAfter property.
function get_notBefore: tDateTime;
Internal accessor for notBefore; use the notBefore property.
procedure set_notAfter(const aValue: tDateTime);
Internal setter for notAfter; assign the notAfter property.
procedure set_notBefore(const aValue: tDateTime);
Internal setter for notBefore; assign the notBefore property.
property notBefore: tDateTime read get_notBefore write set_notBefore;
The earliest time (UTC) at which the private key may be used for signing. Read it when validating a signing operation's date, or assign it when authoring the extension.
property notAfter: tDateTime read get_notAfter write set_notAfter;
The latest time (UTC) after which the private key must no longer be used for signing. Read it when validating a signing operation's date, or assign it when authoring the extension.

classtPrivateKeyUsagePeriod

inherits from tASN1CustomStruct

implements iPrivateKeyUsagePeriod

property notBefore: tDateTime read get_notBefore write set_notBefore; property notAfter: tDateTime read get_notAfter write set_notAfter;

interfaceiExtension

inherits from iASN1CustomStruct

Decoded form of a single X.509v3 certificate Extension (RFC 5280 4.1.2.9): the extnId OID, its critical flag, and the encoded extnValue. An application reaches one of these by index via iExtensions.Items when enumerating every extension in a certificate/CRL (for example to list them in a viewer), or by iExtensions.FindExtension when it needs the critical flag of a specific extension type. To read or build the typed contents, go through the extnValue property rather than the raw OID.

function get_critical: Boolean;
Internal accessor for critical; use the property instead.
function get_extnId: ObjectIdentifier;
Internal accessor for extnId; use the property instead.
function get_extnValue: iExtnValue;
Internal accessor for extnValue; use the property instead.
procedure set_critical(const aValue: Boolean);
Internal setter for critical; assign the critical property instead.
procedure set_extnId(const aValue: ObjectIdentifier);
Internal setter for extnId; assign the extnId property instead.
property extnId: ObjectIdentifier read get_extnId write set_extnId;
The OID that identifies which extension this is (for example id-ce-basicConstraints). When generating a certificate you normally let the higher-level extension-request machinery set this; when inspecting a cert you read it to discover the extension's type, or map it to a tExtnValueEnum.
property critical: Boolean read get_critical write set_critical;
The RFC 5280 criticality flag. When True, a relying party that does not recognize extnId MUST reject the certificate; when validating a cert your code should treat unrecognized critical extensions as fatal. Set it when authoring an extension whose semantics the verifier is required to honor.
property extnValue: iExtnValue read get_extnValue;
The extension's typed payload, exposed as an iExtnValue CHOICE. Read its As... accessors (e.g. AsCeBasicConstraints) to decode the contents, or its set accessors to author them. This is the property an app actually works through; the OID is just the discriminator.

classtExtension

inherits from tASN1CustomStruct

implements iExtension

property extnId: ObjectIdentifier read get_extnId write set_extnId; property critical: Boolean read get_critical write set_critical; property extnValue: iExtnValue read get_extnValue;

interfaceiExtensions

inherits from iASN1CustomStruct

The SEQUENCE OF extensions carried by a certificate or CRL (RFC 5280 4.1.2.9). This is the collection an application uses to read or author v3 extensions: reached as TbsCertificate.Extensions when inspecting a cert, or via a PKCS#10 extension-request attribute when building a CSR. Index it two ways - positionally with Items to enumerate every extension present, or by extension type with the default UniqueItems / FindExtension to get one specific extension.

function get_Items(aIndex: Integer): iExtension;
Internal accessor for Items; use the property instead.
function get_UniqueItems(aIndex: tExtnValueEnum): iExtnValue;
Internal accessor for UniqueItems; use the property instead.
function FindExtension(aIndex: tExtnValueEnum): iExtension;
Locate the extension of a given type and return the whole iExtension (giving access to its critical flag), or nil if absent. Use this instead of UniqueItems when you need to know whether the extension is marked critical, not just its decoded value. On a read-only (already decoded) certificate the lookup is cached per extension type.
property Items[aIndex: Integer]: iExtension read get_Items;
Positional access to the extensions in encoding order. Iterate 0..count-1 to enumerate every extension present - e.g. to display all of them in a certificate viewer or to detect an unrecognized critical extension.
property UniqueItems[aIndex: tExtnValueEnum]: iExtnValue read get_UniqueItems; default;
Access an extension's decoded value directly by its type (tExtnValueEnum). On a read-only certificate this returns the existing value or nil; on a writable collection (building a cert/CSR) it CREATES the extension if absent, so this is how an app both reads and authors a specific extension such as UniqueItems[evCeBasicConstraints].

classtExtensions

inherits from tASN1CustomOFStruct

implements iExtensions

function FindExtension(aIndex: tExtnValueEnum): iExtension; property Items[aIndex: Integer]: iExtension read get_Items; property UniqueItems[aIndex: tExtnValueEnum]: iExtnValue read get_UniqueItems; default;

interfaceiDistributionPointName

inherits from iASN1CustomChoice

Decoded form of the RFC 5280 DistributionPointName CHOICE: where the CRL for an iDistributionPoint lives. Exactly one variant is present at a time - either a full GeneralNames list (AsFullName, the common case, usually holding the HTTP/LDAP URI to fetch) or a distinguished name relative to the CRL issuer (AsNameRelativeToCrlissuer). An app reaches this from iDistributionPoint.distributionPoint during revocation checking; test Choice first to learn which variant is populated before reading it.

function get_AsFullName: iGeneralNames;
Internal accessor for AsFullName; read the AsFullName property instead.
function get_AsNameRelativeToCrlissuer: iRelativeDistinguishedName;
Internal accessor for AsNameRelativeToCrlissuer; read the property instead.
function get_Choice: tDistributionPointNameEnum;
Internal accessor for Choice; read the Choice property instead.
procedure set_Choice(const aValue: tDistributionPointNameEnum);
Internal setter for Choice; assign the Choice property instead.
property Choice: tDistributionPointNameEnum read get_Choice write set_Choice;
Indicates which CHOICE variant is active: dpFullName, dpNameRelativeToCrlissuer, or dpUndefined when none is set. Check this before reading AsFullName or AsNameRelativeToCrlissuer so you access the variant the certificate actually encoded.
property AsFullName: iGeneralNames read get_AsFullName;
The CRL location(s) as a full GeneralNames list; this is the variant used by virtually all real certificates and typically carries the URI (as a uniformResourceIdentifier GeneralName) from which to download the CRL during revocation checking. Valid only when Choice is dpFullName.
property AsNameRelativeToCrlissuer: iRelativeDistinguishedName read get_AsNameRelativeToCrlissuer;
The CRL location expressed as an RDN appended to the CRL issuer's name (an X.500-directory-style reference). Rare in practice; read it only when Choice is dpNameRelativeToCrlissuer.

classtDistributionPointName

property Choice: tDistributionPointNameEnum read get_Choice write set_Choice; property AsFullName: iGeneralNames read get_AsFullName implements iGeneralNames; property AsNameRelativeToCrlissuer: iRelativeDistinguishedName read get_AsNameRelativeToCrlissuer implements iRelativeDistinguishedName;

interfaceiDisplayText

inherits from iASN1CustomChoice

Decoded form of the RFC 5280 DisplayText CHOICE: the human-readable text carried by a certificate-policy user notice (the explicitText of an iUserNotice and the organization of an iNoticeReference). A DisplayText is exactly one string encoding at a time; an app reads whichever variant the certificate used, or, when building a policy notice, sets one variant to both choose the encoding and supply the text. RFC 5280 recommends UTF8String and deprecates BMPString/VisibleString, but existing certificates use any of the four, so read the active variant via Choice before assuming an encoding.

function get_AsBmpString: string;
Internal accessor for AsBmpString; read the AsBmpString property.
function get_AsIa5String: string;
Internal accessor for AsIa5String; read the AsIa5String property.
function get_AsUtf8String: string;
Internal accessor for AsUtf8String; read the AsUtf8String property.
function get_AsVisibleString: string;
Internal accessor for AsVisibleString; read the AsVisibleString property.
function get_Choice: tDisplayTextEnum;
Internal accessor for Choice; read the Choice property.
procedure set_AsBmpString(const aValue: string);
Internal setter for AsBmpString; assign the AsBmpString property.
procedure set_AsIa5String(const aValue: string);
Internal setter for AsIa5String; assign the AsIa5String property.
procedure set_AsUtf8String(const aValue: string);
Internal setter for AsUtf8String; assign the AsUtf8String property.
procedure set_AsVisibleString(const aValue: string);
Internal setter for AsVisibleString; assign the AsVisibleString property.
procedure set_Choice(const aValue: tDisplayTextEnum);
Internal setter for Choice; assign the Choice property.
property Choice: tDisplayTextEnum read get_Choice write set_Choice;
Which of the four string encodings is currently active. Test this after decoding a certificate to learn how the notice text was stored (dtVisibleString, dtBmpString, dtUtf8String or dtIa5String), or assign it to switch the active variant without changing the text (dtUndefined means no choice is set yet). Reading any AsXxxString property also forces that encoding to become the choice.
property AsVisibleString: string read get_AsVisibleString write set_AsVisibleString;
The notice text as (or coerced to) VisibleString. Assign it when authoring a policy notice that must stay within the restricted VisibleString character set.
property AsBmpString: string read get_AsBmpString write set_AsBmpString;
The notice text as (or coerced to) BMPString. Present mainly to read legacy certificates; RFC 5280 deprecates emitting BMPString in new notices.
property AsUtf8String: string read get_AsUtf8String write set_AsUtf8String;
The notice text as (or coerced to) UTF8String. This is the RFC 5280 preferred encoding, so assign it when building new certificate-policy user notices.
property AsIa5String: string read get_AsIa5String write set_AsIa5String;
The notice text as (or coerced to) IA5String (ASCII). Read it for certificates that stored the notice in IA5String; assign only when the text is plain ASCII.

classtDisplayText

inherits from tASN1CustomChoice

implements iDisplayText

property Choice: tDisplayTextEnum read get_Choice write set_Choice; property AsVisibleString: string read get_AsVisibleString write set_AsVisibleString; property AsBmpString: string read get_AsBmpString write set_AsBmpString; property AsUtf8String: string read get_AsUtf8String write set_AsUtf8String; property AsIa5String: string read get_AsIa5String write set_AsIa5String;

interfaceiQualifier

inherits from iASN1CustomInstance

Decoded form of a single PolicyQualifierInfo (RFC 5280 4.2.1.4), one qualifier attached to a policy in the Certificate Policies extension. It is a CHOICE that is either a CPS pointer (id-qt-cps, a URI string) or a user notice (id-qt-unotice). An application reaches it via a policy's qualifier list; read Choice to learn which arm is present, then read AsQtCps or AsQtUnotice accordingly.

function get_AsQtCps: string;
Internal accessor for AsQtCps; selects the id-qt-cps arm and reads it. Use the AsQtCps property.
function get_AsQtUnotice: iUserNotice;
Internal accessor for AsQtUnotice; selects the id-qt-unotice arm and reads it. Use the AsQtUnotice property.
function get_Choice: tQualifierEnum;
Internal accessor for Choice; read the Choice property.
procedure set_AsQtCps(const aValue: string);
Internal setter for AsQtCps; assign the AsQtCps property.
procedure set_Choice(const aValue: tQualifierEnum);
Internal setter for Choice; assign the Choice property.
property Choice: tQualifierEnum read get_Choice write set_Choice;
Which arm of the qualifier CHOICE is present (qQtCps, qQtUnotice, or qUndefined). Read it to decide whether to consult AsQtCps or AsQtUnotice; assigning it, or assigning one of the As* properties, selects the arm.
property AsQtCps: string read get_AsQtCps write set_AsQtCps;
The CPS-pointer arm: a URI (typically HTTP) locating the Certification Practice Statement under which the certificate was issued. Reading selects the id-qt-cps arm; valid when Choice is qQtCps.
property AsQtUnotice: iUserNotice read get_AsQtUnotice;
The user-notice arm: the decoded UserNotice to display to a relying party. Reading selects the id-qt-unotice arm; valid when Choice is qQtUnotice.

classtQualifierInformationObject

inherits from tASN1TypeIdentifier

(no public members)

classtQualifier

property Choice: tQualifierEnum read get_Choice write set_Choice; property AsQtCps: string read get_AsQtCps write set_AsQtCps; property AsQtUnotice: iUserNotice read get_AsQtUnotice implements iUserNotice;

classtKeyUsageBitString

inherits from tASN1BitString

(no public members)

classtNetscapeKeyUsageBitString

inherits from tASN1BitString

(no public members)

interfaceiExtnValueOld

inherits from iASN1CustomInstance

function get_AsCeAuthorityKeyIdentifier: iAuthorityKeyIdentifier; function get_AsCeAuthorityKeyIdentifierOld: iAuthorityKeyIdentifier; function get_AsCeBasicConstraints: iBasicConstraints; function get_AsCeCertificatePolicies: iCertificatePolicies; function get_AsCeCrldistributionPoints: iCRLDistPointsSyntax; function get_AsCeExtKeyUsage: iExtKeyUsageSyntax; function get_AsCeIssuerAltName: iGeneralNames; function get_AsCeKeyUsage: tKeyUsage; function get_AsCeNameConstraints: iNameConstraints; function get_AsCePolicyConstraints: iPolicyConstraints; function get_AsCePolicyMappings: iPolicyMappings; function get_AsCePrimaryKeyUsageRestriction: iPrimaryKeyUsageRestriction; function get_AsCePrivateKeyUsagePeriod: iPrivateKeyUsagePeriod; function get_AsCeSubjectAltName: iGeneralNames; function get_AsCeSubjectDirectoryAttributes: iSubjectDirectoryAttributes; function get_AsCeSubjectKeyIdentifier: iASN1OctetString; function get_AsNetscapeCertType: tNetscapeKeyUsage; function get_AsPeAuthorityInfoAccess: iAuthorityInfoAccessSyntax; function get_Choice: tExtnValueEnum; procedure set_AsCeKeyUsage(const aValue: tKeyUsage); procedure set_AsNetscapeCertType(const aValue: tNetscapeKeyUsage); procedure set_Choice(const aValue: tExtnValueEnum); property Choice: tExtnValueEnum read get_Choice write set_Choice; property AsCeAuthorityKeyIdentifier: iAuthorityKeyIdentifier read get_AsCeAuthorityKeyIdentifier; property AsCeSubjectKeyIdentifier: iASN1OctetString read get_AsCeSubjectKeyIdentifier; property AsCeKeyUsage: tKeyUsage read get_AsCeKeyUsage write set_AsCeKeyUsage; property AsCeExtKeyUsage: iExtKeyUsageSyntax read get_AsCeExtKeyUsage; property AsCePrivateKeyUsagePeriod: iPrivateKeyUsagePeriod read get_AsCePrivateKeyUsagePeriod; property AsCeCertificatePolicies: iCertificatePolicies read get_AsCeCertificatePolicies; property AsCePolicyMappings: iPolicyMappings read get_AsCePolicyMappings; property AsCeSubjectAltName: iGeneralNames read get_AsCeSubjectAltName; property AsCeIssuerAltName: iGeneralNames read get_AsCeIssuerAltName; property AsCeBasicConstraints: iBasicConstraints read get_AsCeBasicConstraints; property AsCeNameConstraints: iNameConstraints read get_AsCeNameConstraints; property AsCePolicyConstraints: iPolicyConstraints read get_AsCePolicyConstraints; property AsCeCrldistributionPoints: iCRLDistPointsSyntax read get_AsCeCrldistributionPoints; property AsCeSubjectDirectoryAttributes: iSubjectDirectoryAttributes read get_AsCeSubjectDirectoryAttributes; property AsPeAuthorityInfoAccess: iAuthorityInfoAccessSyntax read get_AsPeAuthorityInfoAccess; property AsNetscapeCertType: tNetscapeKeyUsage read get_AsNetscapeCertType write set_AsNetscapeCertType; property AsCeAuthorityKeyIdentifierOld: iAuthorityKeyIdentifier read get_AsCeAuthorityKeyIdentifierOld; property AsCePrimaryKeyUsageRestriction: iPrimaryKeyUsageRestriction read get_AsCePrimaryKeyUsageRestriction;

interfaceiExtnValue

inherits from iASN1CustomInstance

The decoded payload of a single certificate/CRL extension (RFC 5280 4.1.2.9), modelled as an ASN.1 CHOICE over every extension type the library understands. An application reaches it as iExtension.extnValue. Reading any As... accessor selects the matching CHOICE alternative (if one is not already selected) and returns the value viewed as that extension's type; Choice reports which alternative is currently selected. When inspecting a cert, first check Choice (or the OID on the owning iExtension) so you read through the accessor that matches the actual extension; when authoring one, the accessor / set_Choice you use fixes which alternative gets encoded.

function get_AsCeAuthorityKeyIdentifier: iAuthorityKeyIdentifier;
Internal accessor for AsCeAuthorityKeyIdentifier; use the property instead.
function get_AsCeAuthorityKeyIdentifierOld: iAuthorityKeyIdentifier;
Internal accessor for AsCeAuthorityKeyIdentifierOld; use the property instead.
function get_AsCeBasicConstraints: iBasicConstraints;
Internal accessor for AsCeBasicConstraints; use the property instead.
function get_AsCeCertificatePolicies: iCertificatePolicies;
Internal accessor for AsCeCertificatePolicies; use the property instead.
function get_AsCeCrldistributionPoints: iCRLDistPointsSyntax;
Internal accessor for AsCeCrldistributionPoints; use the property instead.
function get_AsCeExtKeyUsage: iExtKeyUsageSyntax;
Internal accessor for AsCeExtKeyUsage; use the property instead.
function get_AsCeIssuerAltName: iGeneralNames;
Internal accessor for AsCeIssuerAltName; use the property instead.
function get_AsCeKeyUsage: tKeyUsage;
Internal accessor for AsCeKeyUsage; use the property instead.
function get_AsCeNameConstraints: iNameConstraints;
Internal accessor for AsCeNameConstraints; use the property instead.
function get_AsCePolicyConstraints: iPolicyConstraints;
Internal accessor for AsCePolicyConstraints; use the property instead.
function get_AsCePolicyMappings: iPolicyMappings;
Internal accessor for AsCePolicyMappings; use the property instead.
function get_AsCePrimaryKeyUsageRestriction: iPrimaryKeyUsageRestriction;
Internal accessor for AsCePrimaryKeyUsageRestriction; use the property instead.
function get_AsCePrivateKeyUsagePeriod: iPrivateKeyUsagePeriod;
Internal accessor for AsCePrivateKeyUsagePeriod; use the property instead.
function get_AsCeSubjectAltName: iGeneralNames;
Internal accessor for AsCeSubjectAltName; use the property instead.
function get_AsCeSubjectDirectoryAttributes: iSubjectDirectoryAttributes;
Internal accessor for AsCeSubjectDirectoryAttributes; use the property instead.
function get_AsCeSubjectKeyIdentifier: iASN1OctetString;
Internal accessor for AsCeSubjectKeyIdentifier; use the property instead.
function get_AsNetscapeCertType: tNetscapeKeyUsage;
Internal accessor for AsNetscapeCertType; use the property instead.
function get_AsPeAuthorityInfoAccess: iAuthorityInfoAccessSyntax;
Internal accessor for AsPeAuthorityInfoAccess; use the property instead.
function get_AsPeQualifiedStatements: iQCStatements;
Internal accessor for AsPeQualifiedStatements; use the property instead.
function get_AsAdmissions: iAdmissionSyntax;
Internal accessor for AsAdmissions; use the property instead.
function get_AsPeAcmeIdentifier: iASN1OctetString;
Internal accessor for AsPeAcmeIdentifier; use the property instead.
function get_AsMscEnrolledAgainst: iMscEnrolledAgainst;
Internal accessor for AsMscEnrolledAgainst; use the property instead.
function get_AsMscMailboxRelays: iGeneralNames;
Internal accessor for AsMscMailboxRelays; use the property instead.
function get_Choice: tExtnValueEnum;
Internal accessor for Choice; use the property instead.
procedure set_AsCeKeyUsage(const aValue: tKeyUsage);
Internal setter for AsCeKeyUsage; assign the property instead.
procedure set_AsNetscapeCertType(const aValue: tNetscapeKeyUsage);
Internal setter for AsNetscapeCertType; assign the property instead.
procedure set_Choice(const aValue: tExtnValueEnum);
Internal setter for Choice; assign the property instead.
property Choice: tExtnValueEnum read get_Choice write set_Choice;
Which CHOICE alternative (i.e. which extension type) is currently selected, as a tExtnValueEnum (evUndefined when none is). Read it to discover how to decode this payload; assign it to force a particular alternative before encoding. Assigning evUndefined leaves the current selection unchanged.
property AsCeAuthorityKeyIdentifier: iAuthorityKeyIdentifier read get_AsCeAuthorityKeyIdentifier;
Payload viewed as an Authority Key Identifier (RFC 5280 4.2.1.1, 2.5.29.35): the issuer key id / cert-issuer+serial identifying the key that signed this cert. Reading selects this alternative and returns nil if a different one is already selected.
property AsCeSubjectKeyIdentifier: iASN1OctetString read get_AsCeSubjectKeyIdentifier;
Payload viewed as a Subject Key Identifier (RFC 5280 4.2.1.2, 2.5.29.14): the octet string identifying this cert's own public key. Reading selects this alternative and returns nil if a different one is already selected.
property AsCeKeyUsage: tKeyUsage read get_AsCeKeyUsage write set_AsCeKeyUsage;
Payload viewed as the Key Usage bit set (RFC 5280 4.2.1.3, 2.5.29.15): which operations the certified key may perform (digitalSignature, keyEncipherment, keyCertSign, ...). Read it when validating a peer key; assign it when authoring the extension.
property AsCeExtKeyUsage: iExtKeyUsageSyntax read get_AsCeExtKeyUsage;
Payload viewed as Extended Key Usage (RFC 5280 4.2.1.12, 2.5.29.37): the list of KeyPurposeId OIDs. Reading selects this alternative and returns nil if a different one is already selected.
property AsCePrivateKeyUsagePeriod: iPrivateKeyUsagePeriod read get_AsCePrivateKeyUsagePeriod;
Payload viewed as Private Key Usage Period (RFC 3280 4.2.1.4, 2.5.29.16): the notBefore/notAfter window for the private key. Reading selects this alternative and returns nil if a different one is already selected.
property AsCeCertificatePolicies: iCertificatePolicies read get_AsCeCertificatePolicies;
Payload viewed as Certificate Policies (RFC 5280 4.2.1.4, 2.5.29.32): the policy OIDs and qualifiers under which the cert was issued. Reading selects this alternative and returns nil if a different one is already selected.
property AsCePolicyMappings: iPolicyMappings read get_AsCePolicyMappings;
Payload viewed as Policy Mappings (RFC 5280 4.2.1.5, 2.5.29.33): CA-asserted issuer-to-subject policy OID equivalences. Reading selects this alternative and returns nil if a different one is already selected.
property AsCeSubjectAltName: iGeneralNames read get_AsCeSubjectAltName;
Payload viewed as Subject Alternative Name (RFC 5280 4.2.1.6, 2.5.29.17): the subject's DNS names, IPs, e-mail, URIs, etc. Reading selects this alternative and returns nil if a different one is already selected.
property AsCeIssuerAltName: iGeneralNames read get_AsCeIssuerAltName;
Payload viewed as Issuer Alternative Name (RFC 5280 4.2.1.7, 2.5.29.18): alternative names for the issuer. Reading selects this alternative and returns nil if a different one is already selected.
property AsCeBasicConstraints: iBasicConstraints read get_AsCeBasicConstraints;
Payload viewed as Basic Constraints (RFC 5280 4.2.1.9, 2.5.29.19): the cA flag and pathLenConstraint. Reading selects this alternative and returns nil if a different one is already selected.
property AsCeNameConstraints: iNameConstraints read get_AsCeNameConstraints;
Payload viewed as Name Constraints (RFC 5280 4.2.1.10, 2.5.29.30): the permitted/excluded name subtrees a CA imposes on paths below it. Reading selects this alternative and returns nil if a different one is selected.
property AsCePolicyConstraints: iPolicyConstraints read get_AsCePolicyConstraints;
Payload viewed as Policy Constraints (RFC 5280 4.2.1.11, 2.5.29.36): requireExplicitPolicy / inhibitPolicyMapping skip counts. Reading selects this alternative and returns nil if a different one is already selected.
property AsCeCrldistributionPoints: iCRLDistPointsSyntax read get_AsCeCrldistributionPoints;
Payload viewed as CRL Distribution Points (RFC 5280 4.2.1.13, 2.5.29.31): where to fetch the CRL that could revoke this cert. Reading selects this alternative and returns nil if a different one is already selected.
property AsCeSubjectDirectoryAttributes: iSubjectDirectoryAttributes read get_AsCeSubjectDirectoryAttributes;
Payload viewed as Subject Directory Attributes (RFC 5280 4.2.1.8, 2.5.29.9): additional identity attributes of the subject. Reading selects this alternative and returns nil if a different one is already selected.
property AsPeAuthorityInfoAccess: iAuthorityInfoAccessSyntax read get_AsPeAuthorityInfoAccess;
Payload viewed as Authority Information Access (RFC 5280 4.2.2.1, 1.3.6.1.5.5.7.1.1): OCSP responder and CA-issuers access descriptions. Reading selects this alternative and returns nil if a different one is already selected.
property AsNetscapeCertType: tNetscapeKeyUsage read get_AsNetscapeCertType write set_AsNetscapeCertType;
Payload viewed as the legacy Netscape cert-type bit set (2.16.840.1.113730.1.1): the pre-standard analogue of Key Usage. Read it when accepting old certs; assign it when authoring the extension.
property AsCeAuthorityKeyIdentifierOld: iAuthorityKeyIdentifier read get_AsCeAuthorityKeyIdentifierOld;
Payload viewed as the pre-RFC-3280 Authority Key Identifier (old 2.5.29.1 form). Reading selects this alternative and returns nil if a different one is already selected; prefer AsCeAuthorityKeyIdentifier for current certs.
property AsCePrimaryKeyUsageRestriction: iPrimaryKeyUsageRestriction read get_AsCePrimaryKeyUsageRestriction;
Payload viewed as the legacy Primary Key Usage Restriction extension. Reading selects this alternative and returns nil if a different one is already selected.
property AsPeQualifiedStatements: iQCStatements read get_AsPeQualifiedStatements;
Payload viewed as QC Statements (RFC 3739 3.2.6, 1.3.6.1.5.5.7.1.3): qualified-certificate statements. Reading selects this alternative and returns nil if a different one is already selected.
property AsAdmissions: iAdmissionSyntax read get_AsAdmissions;
Payload viewed as an Admission extension (Common PKI 1.3.36.8.3.3): admission/profession data. Reading selects this alternative and returns nil if a different one is already selected.
property AsPeAcmeIdentifier: iASN1OctetString read get_AsPeAcmeIdentifier;
Payload viewed as the ACME identifier (RFC 8737 pe-acmeIdentifier, 1.3.6.1.5.5.7.1.31): the octet string carrying the ACME challenge for tls-alpn-01. Reading selects this alternative and returns nil if a different one is already selected.
property AsMscEnrolledAgainst: iMscEnrolledAgainst read get_AsMscEnrolledAgainst;
Payload viewed as id-msc-enrolledAgainst: the signature certificate this KEM certificate was enrolled against, by issuer and serial.
property AsMscMailboxRelays: iGeneralNames read get_AsMscMailboxRelays;
Payload viewed as id-msc-mailboxRelays: the one to three relay hosts, a dNSName each, that hold this KEM certificate's mailbox. Reading selects this alternative and returns nil if a different one is already selected.

classtExtnValue

property Choice: tExtnValueEnum read get_Choice write set_Choice; property AsCeAuthorityKeyIdentifier: iAuthorityKeyIdentifier read get_AsCeAuthorityKeyIdentifier implements iAuthorityKeyIdentifier; property AsCeSubjectKeyIdentifier: iASN1OctetString read get_AsCeSubjectKeyIdentifier; property AsCeKeyUsage: tKeyUsage read get_AsCeKeyUsage write set_AsCeKeyUsage; property AsCeExtKeyUsage: iExtKeyUsageSyntax read get_AsCeExtKeyUsage implements iExtKeyUsageSyntax; property AsCePrivateKeyUsagePeriod: iPrivateKeyUsagePeriod read get_AsCePrivateKeyUsagePeriod implements iPrivateKeyUsagePeriod; property AsCeCertificatePolicies: iCertificatePolicies read get_AsCeCertificatePolicies implements iCertificatePolicies; property AsCePolicyMappings: iPolicyMappings read get_AsCePolicyMappings implements iPolicyMappings; property AsCeSubjectAltName: iGeneralNames read get_AsCeSubjectAltName implements iGeneralNames; property AsCeIssuerAltName: iGeneralNames read get_AsCeIssuerAltName; property AsCeBasicConstraints: iBasicConstraints read get_AsCeBasicConstraints implements iBasicConstraints; property AsCeNameConstraints: iNameConstraints read get_AsCeNameConstraints implements iNameConstraints; property AsCePolicyConstraints: iPolicyConstraints read get_AsCePolicyConstraints implements iPolicyConstraints; property AsCeCrldistributionPoints: iCRLDistPointsSyntax read get_AsCeCrldistributionPoints implements iCRLDistPointsSyntax; property AsCeSubjectDirectoryAttributes: iSubjectDirectoryAttributes read get_AsCeSubjectDirectoryAttributes implements iSubjectDirectoryAttributes; property AsPeAuthorityInfoAccess: iAuthorityInfoAccessSyntax read get_AsPeAuthorityInfoAccess implements iAuthorityInfoAccessSyntax; property AsNetscapeCertType: tNetscapeKeyUsage read get_AsNetscapeCertType write set_AsNetscapeCertType; property AsCeAuthorityKeyIdentifierOld: iAuthorityKeyIdentifier read get_AsCeAuthorityKeyIdentifierOld; property AsCePrimaryKeyUsageRestriction: iPrimaryKeyUsageRestriction read get_AsCePrimaryKeyUsageRestriction implements iPrimaryKeyUsageRestriction; property AsPeQualifiedStatements: iQCStatements read get_AsPeQualifiedStatements implements iQCStatements; property AsAdmissions: iAdmissionSyntax read get_AsAdmissions implements iAdmissionSyntax; property AsPeAcmeIdentifier: iASN1OctetString read get_AsPeAcmeIdentifier; property AsMscEnrolledAgainst: iMscEnrolledAgainst read get_AsMscEnrolledAgainst; property AsMscMailboxRelays: iGeneralNames read get_AsMscMailboxRelays;

classtExtnValueInformationObject

inherits from tASN1TypeIdentifier

(no public members)

Types (enumerations, sets, aliases)

typetKeyUsageEnum

tKeyUsageEnum / tKeyUsage were moved to StreamSec.DSI.PKTypes so that key format units (e.g. StreamSec.DSI.Pkcs8) can reference key usage without importing this unit's certificate-extension / GeneralName machinery. These aliases keep the stPkixExtension.tKeyUsage* type names valid for existing consumers; the bare enum member identifiers (DigitalSignature .. Decipher- Only) reach this unit's own code via the StreamSec.DSI.PKTypes import added to the uses clause above.

  tKeyUsageEnum = StreamSec.DSI.PKTypes.tKeyUsageEnum;

typetKeyUsage

  tKeyUsage     = StreamSec.DSI.PKTypes.tKeyUsage;

enumtReasonFlagsEnum

  tReasonFlagsEnum = (Unused,
                      KeyCompromise,
                      CACompromise,
                      AffiliationChanged,
                      Superseded,
                      CessationOfOperation,
                      CertificateHold);

settReasonFlags

  tReasonFlags = set of tReasonFlagsEnum;

enumtDistributionPointNameEnum

  tDistributionPointNameEnum = (dpUndefined,
                                dpFullName,
                                dpNameRelativeToCrlissuer);

enumtDisplayTextEnum

  tDisplayTextEnum = (dtUndefined,
                      dtVisibleString,
                      dtBmpString,
                      dtUtf8String,
                      dtIa5String);

enumtQualifierEnum

  tQualifierEnum = (qUndefined,
                    qQtCps,
                    qQtUnotice);

enumtExtnValueEnum

  tExtnValueEnum = (evUndefined,
                    evCeAuthorityKeyIdentifier,
                    evCeSubjectKeyIdentifier,
                    evCeKeyUsage,
                    evCeExtKeyUsage,
                    evCePrivateKeyUsagePeriod,
                    evCeCertificatePolicies,
                    evCePolicyMappings,
                    evCeSubjectAltName,
                    evCeIssuerAltName,
                    evCeBasicConstraints,
                    evCeNameConstraints,
                    evCePolicyConstraints,
                    evCeCRldistributionPoints,
                    evCeSubjectDirectoryAttributes,
                    evPeAuthorityInfoAccess,
                    evNetscapeCertType,
                    evCeAuthorityKeyIdentifierOld,
                    evCePrimaryKeyUsageRestriction,
                    evPeQualifiedStatements,
                    evAdmissions,
                    evPeAcmeIdentifier,
                    { RFC 6960 s4.2.2.2.1. Appended, never inserted: an
                      extension's ordinal is its CHOICE index + 1, so anywhere
                      else would silently re-tag every extension after it. }
                    evPkixOcspNocheck,
                    { id-msc-enrolledAgainst. Appended for the same reason as
                      the one above: the ordinal IS the CHOICE index, so a new
                      member anywhere but the end re-tags every extension after
                      it, silently and in every certificate this library
                      parses. }
                    evMscEnrolledAgainst,
                    { id-msc-mailboxRelays. Appended, like the two above. }
                    evMscMailboxRelays);

typetNetscapeKeyUsageEnum

  tNetscapeKeyUsageEnum = stOIDs.tNetscapeKeyUsageItem;

typetNetscapeKeyUsage

  tNetscapeKeyUsage = stOIDs.tNetscapeKeyUsage;

arraytCheckedExtensions

  tCheckedExtensions = array [tExtnValueEnum] of Boolean;

arraytUniqueExtensions

  tUniqueExtensions = array [tExtnValueEnum] of iExtension;