Feature notes: PKIX / CMS implementation notes
(no public members)
(no public members)
(no public members)
(no public members)
(no public members)
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;
procedure set_Items(aIndex: Integer; const aValue: ObjectIdentifier);
property Items[aIndex: Integer]: ObjectIdentifier read get_Items write set_Items; default;
inherits from tASN1CustomOFStruct
implements iExtKeyUsageSyntax
property Items[aIndex: Integer]: ObjectIdentifier read get_Items write set_Items; default;
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;
function get_authorityCertSerialNumber: iASN1Integer;
function get_keyIdentifier: iASN1OctetString;
property keyIdentifier: iASN1OctetString read get_keyIdentifier;
property authorityCertIssuer: iGeneralNames read get_authorityCertIssuer;
property authorityCertSerialNumber: iASN1Integer read get_authorityCertSerialNumber;
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;
function get_serialNumber: iASN1Integer;
property issuer: iName read get_issuer;
property serialNumber: iASN1Integer read get_serialNumber;
inherits from tASN1CustomStruct
implements iMscEnrolledAgainst
property issuer: iName read get_issuer;
property serialNumber: iASN1Integer read get_serialNumber;
inherits from tASN1CustomStruct
implements iAuthorityKeyIdentifier
property keyIdentifier: iASN1OctetString read get_keyIdentifier;
property authorityCertIssuer: iGeneralNames read get_authorityCertIssuer;
property authorityCertSerialNumber: iASN1Integer read get_authorityCertSerialNumber;
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;
function get_certPolicySetCount: Integer;
function get_restrictedKeyUsage: tKeyUsage;
procedure set_certPolicySet(aIndex: Integer; const aValue: ObjectIdentifier);
procedure set_restrictedKeyUsage(const aValue: tKeyUsage);
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;
inherits from tASN1CustomOFStruct
(no public members)
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;
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;
function get_maximum: Integer;
function get_minimum: Integer;
procedure set_maximum(const aValue: Integer);
procedure set_minimum(const aValue: Integer);
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;
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;
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;
function get_accessMethod: ObjectIdentifier;
procedure set_accessMethod(const aValue: ObjectIdentifier);
property accessMethod: ObjectIdentifier read get_accessMethod write set_accessMethod;
property accessLocation: iGeneralName read get_accessLocation;
inherits from tASN1CustomStruct
implements iAccessDescription
property accessMethod: ObjectIdentifier read get_accessMethod write set_accessMethod;
property accessLocation: iGeneralName read get_accessLocation;
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;
property Items[aIndex: Integer]: iAccessDescription read get_Items; default;
inherits from tASN1CustomOFStruct
implements iAuthorityInfoAccessSyntax
property Items[aIndex: Integer]: iAccessDescription read get_Items; default;
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)
inherits from tASN1CustomOFStruct
(no public members)
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;
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;
function get_attrValues(aIndex: Integer): iAttrValue;
function get_attrValuesCount: Integer;
function get_attrValuesUnique(aIndex: tAttrValueEnum): iAttrValue;
procedure set_attrType(const aValue: ObjectIdentifier);
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;
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;
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;
function get_UniqueItems(aIndex: tAttrValueEnum): iAttrValue;
property Items[aIndex: Integer]: iAttribute read get_Items;
property UniqueItems[aIndex: tAttrValueEnum]: iAttrValue read get_UniqueItems; default;
inherits from tASN1CustomOFStruct
implements iSubjectDirectoryAttributes
property Items[aIndex: Integer]: iAttribute read get_Items;
property UniqueItems[aIndex: tAttrValueEnum]: iAttrValue read get_UniqueItems; default;
inherits from tASN1BitString
(no public members)
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;
function get_distributionPoint: iDistributionPointName;
function get_reasons: tReasonFlags;
procedure set_reasons(const aValue: tReasonFlags);
property distributionPoint: iDistributionPointName read get_distributionPoint;
property reasons: tReasonFlags read get_reasons write set_reasons;
property cRlissuer: iGeneralNames read get_cRlissuer;
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;
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;
property Items[aIndex: Integer]: iDistributionPoint read get_Items; default;
inherits from tASN1CustomOFStruct
implements iCRLDistPointsSyntax
property Items[aIndex: Integer]: iDistributionPoint read get_Items; default;
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;
function get_requireExplicitPolicy: Integer;
procedure set_inhibitPolicyMapping(const aValue: Integer);
procedure set_requireExplicitPolicy(const aValue: Integer);
property requireExplicitPolicy: Integer read get_requireExplicitPolicy write set_requireExplicitPolicy;
property inhibitPolicyMapping: Integer read get_inhibitPolicyMapping write set_inhibitPolicyMapping;
inherits from tASN1CustomStruct
implements iPolicyConstraints
property requireExplicitPolicy: Integer read get_requireExplicitPolicy write set_requireExplicitPolicy;
property inhibitPolicyMapping: Integer read get_inhibitPolicyMapping write set_inhibitPolicyMapping;
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;
procedure Intersect(aIntersection: iGeneralSubTrees);
procedure Union(aUnion: iGeneralSubTrees);
property Items[aIndex: Integer]: iGeneralSubtree read get_Items; default;
inherits from tASN1CustomOFStruct
implements iGeneralSubtrees
procedure Intersect(aIntersection: iGeneralSubTrees);
procedure Union(aUnion: iGeneralSubTrees);
property Items[aIndex: Integer]: iGeneralSubtree read get_Items; default;
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;
function get_permittedSubtrees: iGeneralSubtrees;
procedure Combine(aCombination: iNameConstraints);
function Verify(aName : iName; aAltName: iGeneralNames) : Boolean;
property permittedSubtrees: iGeneralSubtrees read get_permittedSubtrees;
property excludedSubtrees: iGeneralSubtrees read get_excludedSubtrees;
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;
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;
function get_pathLenConstraint: Integer;
procedure set_cA(const aValue: Boolean);
procedure set_pathLenConstraint(const aValue: Integer);
property cA: Boolean read get_cA write set_cA;
property pathLenConstraint: Integer read get_pathLenConstraint write set_pathLenConstraint;
inherits from tASN1CustomStruct
implements iBasicConstraints
property cA: Boolean read get_cA write set_cA;
property pathLenConstraint: Integer read get_pathLenConstraint write set_pathLenConstraint;
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;
function get_subjectDomainPolicy: ObjectIdentifier;
procedure set_issuerDomainPolicy(const aValue: ObjectIdentifier);
procedure set_subjectDomainPolicy(const aValue: ObjectIdentifier);
property issuerDomainPolicy: ObjectIdentifier read get_issuerDomainPolicy write set_issuerDomainPolicy;
property subjectDomainPolicy: ObjectIdentifier read get_subjectDomainPolicy write set_subjectDomainPolicy;
inherits from tASN1CustomStruct
implements iPolicyMapping
property issuerDomainPolicy: ObjectIdentifier read get_issuerDomainPolicy write set_issuerDomainPolicy;
property subjectDomainPolicy: ObjectIdentifier read get_subjectDomainPolicy write set_subjectDomainPolicy;
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;
property Items[aIndex: Integer]: iPolicyMapping read get_Items; default;
inherits from tASN1CustomOFStruct
implements iPolicyMappings
property Items[aIndex: Integer]: iPolicyMapping read get_Items; default;
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;
function get_noticeRef: iNoticeReference;
property noticeRef: iNoticeReference read get_noticeRef;
property explicitText: iDisplayText read get_explicitText;
inherits from tASN1CustomStruct
implements iUserNotice
property noticeRef: iNoticeReference read get_noticeRef;
property explicitText: iDisplayText read get_explicitText;
inherits from tASN1CustomOFStruct
(no public members)
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;
function get_noticeNumbersCount: Integer;
function get_organization: iDisplayText;
property organization: iDisplayText read get_organization;
property noticeNumbersCount: Integer read get_noticeNumbersCount;
property noticeNumbers[aIndex: Integer]: Int64 read get_noticeNumber;
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;
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;
function get_qualifier: iQualifier;
procedure set_policyQualifierId(const aValue: ObjectIdentifier);
property policyQualifierId: ObjectIdentifier read get_policyQualifierId write set_policyQualifierId;
property qualifier: iQualifier read get_qualifier;
inherits from tASN1CustomStruct
implements iPolicyQualifierInfo
property policyQualifierId: ObjectIdentifier read get_policyQualifierId write set_policyQualifierId;
property qualifier: iQualifier read get_qualifier;
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;
function get_policyQualifiers(aIndex: Integer): iPolicyQualifierInfo;
function get_policyQualifiersCount: Integer;
function get_policyQualifiersUnique(aIndex: tQualifierEnum): iQualifier;
procedure set_policyIdentifier(const aValue: ObjectIdentifier);
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;
inherits from tASN1CustomOFStruct
(no public members)
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;
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;
property Items[aIndex: Integer]: iPolicyInformation read get_Items; default;
inherits from tASN1CustomOFStruct
implements iCertificatePolicies
property Items[aIndex: Integer]: iPolicyInformation read get_Items; default;
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;
function get_notBefore: tDateTime;
procedure set_notAfter(const aValue: tDateTime);
procedure set_notBefore(const aValue: tDateTime);
property notBefore: tDateTime read get_notBefore write set_notBefore;
property notAfter: tDateTime read get_notAfter write set_notAfter;
inherits from tASN1CustomStruct
implements iPrivateKeyUsagePeriod
property notBefore: tDateTime read get_notBefore write set_notBefore;
property notAfter: tDateTime read get_notAfter write set_notAfter;
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;
function get_extnId: ObjectIdentifier;
function get_extnValue: iExtnValue;
procedure set_critical(const aValue: Boolean);
procedure set_extnId(const aValue: ObjectIdentifier);
property extnId: ObjectIdentifier read get_extnId write set_extnId;
property critical: Boolean read get_critical write set_critical;
property extnValue: iExtnValue read get_extnValue;
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;
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;
function get_UniqueItems(aIndex: tExtnValueEnum): iExtnValue;
function FindExtension(aIndex: tExtnValueEnum): iExtension;
property Items[aIndex: Integer]: iExtension read get_Items;
property UniqueItems[aIndex: tExtnValueEnum]: iExtnValue read get_UniqueItems; default;
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;
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;
function get_AsNameRelativeToCrlissuer: iRelativeDistinguishedName;
function get_Choice: tDistributionPointNameEnum;
procedure set_Choice(const aValue: tDistributionPointNameEnum);
property Choice: tDistributionPointNameEnum read get_Choice write set_Choice;
property AsFullName: iGeneralNames read get_AsFullName;
property AsNameRelativeToCrlissuer: iRelativeDistinguishedName read get_AsNameRelativeToCrlissuer;
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;
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;
function get_AsIa5String: string;
function get_AsUtf8String: string;
function get_AsVisibleString: string;
function get_Choice: tDisplayTextEnum;
procedure set_AsBmpString(const aValue: string);
procedure set_AsIa5String(const aValue: string);
procedure set_AsUtf8String(const aValue: string);
procedure set_AsVisibleString(const aValue: string);
procedure set_Choice(const aValue: tDisplayTextEnum);
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;
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;
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;
function get_AsQtUnotice: iUserNotice;
function get_Choice: tQualifierEnum;
procedure set_AsQtCps(const aValue: string);
procedure set_Choice(const aValue: tQualifierEnum);
property Choice: tQualifierEnum read get_Choice write set_Choice;
property AsQtCps: string read get_AsQtCps write set_AsQtCps;
property AsQtUnotice: iUserNotice read get_AsQtUnotice;
inherits from tASN1TypeIdentifier
(no public members)
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;
inherits from tASN1BitString
(no public members)
inherits from tASN1BitString
(no public members)
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;
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;
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_AsPeQualifiedStatements: iQCStatements;
function get_AsAdmissions: iAdmissionSyntax;
function get_AsPeAcmeIdentifier: iASN1OctetString;
function get_AsMscEnrolledAgainst: iMscEnrolledAgainst;
function get_AsMscMailboxRelays: iGeneralNames;
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;
property AsPeQualifiedStatements: iQCStatements read get_AsPeQualifiedStatements;
property AsAdmissions: iAdmissionSyntax read get_AsAdmissions;
property AsPeAcmeIdentifier: iASN1OctetString read get_AsPeAcmeIdentifier;
property AsMscEnrolledAgainst: iMscEnrolledAgainst read get_AsMscEnrolledAgainst;
property AsMscMailboxRelays: iGeneralNames read get_AsMscMailboxRelays;
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;
inherits from tASN1TypeIdentifier
(no public members)
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.