micro509 / verify
verify
Canonical advanced verification domain surface. Owns chain validation, service identity, policy, and name-constraint APIs.
Interfaces
ConstrainedPolicy
Defined in: src/verify/policy.ts:33
One policy OID that survives RFC 5280 / RFC 9618 processing.
Properties
policyIdentifier
readonlypolicyIdentifier:string
Defined in: src/verify/policy.ts:35
Dotted-decimal OID of the surviving policy.
policyQualifiers?
readonlyoptionalpolicyQualifiers?: readonlyPolicyQualifierInfo[]
Defined in: src/verify/policy.ts:37
Qualifier info (CPS URIs, user notices) attached to this policy, if any.
MatchServiceIdentityFailureDetails
Defined in: src/verify/identity.ts:77
Diagnostic context attached to an identity-matching failure.
Properties
actual?
readonlyoptionalactual?:string
Defined in: src/verify/identity.ts:83
Comma-joined presented identifiers (from SAN) that were compared.
commonNameFallbackReason?
readonlyoptionalcommonNameFallbackReason?:"disabled"|"suppressed_by_presented_identifier"|"common_name_missing"|"common_name_mismatch"
Defined in: src/verify/identity.ts:87
Explains why CN fallback was not used or failed.
expected?
readonlyoptionalexpected?:string
Defined in: src/verify/identity.ts:81
The reference identifier the caller asked to verify.
presentedIdentifierTypes?
readonlyoptionalpresentedIdentifierTypes?: readonly ("uri"|"dns"|"srv")[]
Defined in: src/verify/identity.ts:85
SAN types that were present, relevant to CN-fallback suppression logic.
subjectCommonName?
readonlyoptionalsubjectCommonName?:string
Defined in: src/verify/identity.ts:79
CN of the certificate that was being matched, if present.
PolicyValidationOutcome
Defined in: src/verify/policy.ts:41
Final policy outputs exposed by successful path-validation APIs.
Properties
authorityConstrainedPolicies
readonlyauthorityConstrainedPolicies: readonlyConstrainedPolicy[]
Defined in: src/verify/policy.ts:43
Policies valid under the authority's (CA chain) constraints alone.
userConstrainedPolicies
readonlyuserConstrainedPolicies: readonlyConstrainedPolicy[]
Defined in: src/verify/policy.ts:45
Policies that also satisfy the caller's PolicyValidationInput.initialPolicySet.
Type Aliases
MatchableServiceIdentityInput
MatchableServiceIdentityInput =
ServiceIdentityInput
Defined in: src/verify/identity.ts:65
Alias for the full identity union accepted by matching functions.
MatchServiceIdentityEvaluation
MatchServiceIdentityEvaluation =
Result<void,MatchServiceIdentityFailure>
Defined in: src/verify/identity.ts:126
Void-valued result type used internally during identity evaluation.
MatchServiceIdentityFailureResult
MatchServiceIdentityFailureResult =
ErrorResult<MatchServiceIdentityErrorCode,MatchServiceIdentityFailureDetails,MatchServiceIdentityFailure>
Defined in: src/verify/identity.ts:110
Failure branch of MatchServiceIdentityResult with structured error details.