Skip to content
Wallet and Entity Collection draft updates
Documentation menu

Trust Marks

@oidfed/core

Establish issuer trust before relying on a mark. Signing, delegation, holding a JWT, accreditation policy, and live status are separate operations. Evidence objects preserve provenance in the current process and cannot be recreated by copying their fields.

AttachTrustMarkOptions

Source

Issuer evidence and replacement policy for attaching a mark to its holder.

interface AttachTrustMarkOptions
	extends Omit<ValidateTrustMarkWithIssuerOptions, "expectedSubject"> {
	readonly issuerEvidence: TrustMarkIssuerContext;
	readonly replacement?: "same-issuer-and-type";
}

Fields (including inherited fields):

Field Declared type Description
issuerEvidence TrustMarkIssuerContext Previously established federation issuer evidence or explicit host out-of-band trust.
replacement? "same-issuer-and-type" When set to same-issuer-and-type, replace published references from the same issuer for this type. Omitted mode appends and ignores duplicate JWTs.
signal? AbortSignal Cancellation signal for the waiting caller and cooperative work started by this operation.
httpTimeoutMs? number Timeout in milliseconds for bounded transport or host callbacks; defaults to 10000.
clock? Clock NumericDate time source; omitted clocks use the runtime's current time.
trustResolution? import("./trust-chain/assessment.js").TrustResolutionSource Acquisition source; protocol consumers still validate the returned subject chain.
chainSelection? ChainSelectionStrategy Select among validated candidates eligible for the current operation.
authentication? EndpointClientAuthentication Authentication settings for the endpoint or outgoing request described by this contract.
getEndpointAuthentication? EndpointAuthenticationProvider Select authentication for each outgoing federation endpoint request. Mutually exclusive with authentication.
additionalParameters? EndpointAdditionalParameters Extension selectors for outgoing requests; reserved names and conflicting fixed selectors are rejected.
trustMarkVerification? TrustMarkVerificationOptions Issuer-evidence and accreditation-resolution options for evaluating published Trust Marks.
trustMarkIssuerKeys? ReadonlyMap<string, JWKSet> Independently supplied issuer keys for evaluating published Trust Marks.
trustMarkProfiles? readonly TrustMarkProfile[] Explicitly recognized framework JWT types and their optional claim-validation policies.
offline? boolean Disallow network access when only supplied evidence is permitted.
httpClient? HttpClient Host HTTP transport; defaults to the runtime's fetch implementation.
entityConfigurations? ReadonlyMap<string, string> | undefined Subject Entity Configuration JWTs used during chain validation; signatures and identity bindings still need validation.
storage? FederationStorage | undefined Storage for standalone calls. Hosted calls inherit storage from their entity.
logger? Logger Optional host logger. Library calls are message-only, nonblocking, and protected from sink failures.
clockSkewSeconds? number Allowed time-claim leeway in seconds; the default verifier allowance is 60 seconds.
maxChainDepth? number Maximum recursive discovery depth; defaults to 8.
maxChainLength? number Maximum statements in a validated chain, including both ECs. Default: 100; resource policy, not a protocol limit.
maxResolutionSteps? number Maximum eligible branch expansions per resolution, including reused statements. Default: 1000.
maxAuthorityHints? number Maximum authority hints examined for an entity; defaults to 10.
maxConcurrentFetches? number Maximum concurrent fetches during chain traversal and collection refresh; defaults to 6.
cacheMaxTtlSeconds? number Fetched EC and Subordinate Statement cache retention cap in seconds; defaults to 3600 and is bounded by the statement's exp. Applies to statement fetchers using a cache.
maxResponseBytes? number Maximum response or decoded token size in bytes for APIs applying this limit; the shared default is 524288.
blockedCIDRs? string[] Additional blocked IP ranges applied by URL fetch validation.
allowedHosts? string[] Optional exact hostname allowlist applied before outbound fetching.
authorityHintFilter? (hint: URL, subject: EntityId) => boolean Host predicate for accepting an authority hint before traversal.
understoodCriticalClaims? ReadonlySet<string> Extension claim names the application actually understands and processes; unknown critical claims are rejected.
maxTotalFetches? number Maximum HTTP client calls; discovery helpers share the allowance across discovery and candidate validation. Cached and supplied statements use no allowance. Core accepts zero. Default: 50.
customPolicyOperators? readonly PolicyOperatorDefinition[] Federation-defined policy operators in addition to the seven standard ones. Forwarded to resolveMetadataPolicy and applyMetadataPolicy during trust-chain validation.
customConstraintChecks? readonly ConstraintCheckDefinition[] Federation-defined constraints checked against authenticated chains. Unknown names are ignored.
expectedTrustMarkType string Trust Mark type that must match the verified payload.
trustMarkOwners? Record<string, TrustMarkOwner> Trusted owner identity and keys indexed by Trust Mark type.
historicalKeys? HistoricalTrustMarkOptions Historical-key source and freshness policy; signature failures do not trigger a historical-key retry.

checkTrustMarkRequirements

Source

Check required Trust Mark types and, optionally, every published mark against already validated evidence. Chain, mark, delegation, and verification-evidence deadlines are checked again. This synchronous function does not fetch fresh issuer evidence or query Status/Listing endpoints; the host chooses those additional checks.

checkTrustMarkRequirements(chain: ValidatedTrustChain, requirements: TrustMarkRequirements, options?: Pick<FederationOptions, "clock" | "clockSkewSeconds">): Result<void, FederationError>;

EstablishTrustMarkIssuerOptions

Source

Issuer identity, accreditation policy, and trust inputs for establishing issuer evidence.

interface EstablishTrustMarkIssuerOptions {
	readonly issuer: string;
	readonly trustMarkType: string;
	readonly trustAnchors: TrustAnchorSet;
	readonly trustChain?: readonly string[];
	readonly entityConfigurations?: ReadonlyMap<string, string>;
	readonly options: FederationOptions;
}

Fields (including inherited fields):

Field Declared type Description
issuer string Issuer identity for the signed artifact or configured service.
trustMarkType string Trust Mark type identifier used for issuance, verification, or filtering.
trustAnchors TrustAnchorSet Independently trusted anchor identities and their public Federation Entity Keys.
trustChain? readonly string[] Supplied or validated Trust Chain, in the representation declared by this contract.
entityConfigurations? ReadonlyMap<string, string> Subject Entity Configuration JWTs used during chain validation; signatures and identity bindings still need validation.
options? FederationOptions Shared federation transport and validation settings for this operation.

establishTrustMarkIssuerTrust

Source

Validate supplied proofs or discover an eligible issuer chain without recursive mark evaluation.

establishTrustMarkIssuerTrust(input: EstablishTrustMarkIssuerOptions): Promise<Result<FederationTrustMarkIssuerEvidence>>;

FederationTrustMarkIssuerEvidence

Source

Evidence issued by establishTrustMarkIssuerTrust after federation validation. Consumers check its process-local object identity as well as expiry. A spread, structured clone, or JSON round trip does not retain that provenance; establish fresh evidence from signed statements when crossing a process boundary.

interface FederationTrustMarkIssuerEvidence {
	readonly kind: "federation";
	readonly issuer: string;
	readonly trustMarkType: string;
	readonly trustAnchorId: string;
	readonly statements: readonly string[];
	readonly entityConfigurations: Readonly<Record<string, string>>;
	readonly keys: JWKSet;
	readonly expiresAt: number;
	readonly metadata?: FederationEntityMetadata;
	readonly trustMarkIssuers: Readonly<Record<string, readonly string[]>>;
	readonly trustMarkOwners: Readonly<Record<string, TrustMarkOwner>>;
}

Fields (including inherited fields):

Field Declared type Description
kind "federation" Discriminator selecting the evidence or acquisition mode.
issuer string Issuer identity for the signed artifact or configured service.
trustMarkType string Trust Mark type identifier used for issuance, verification, or filtering.
trustAnchorId string Trust Anchor at which the chain or evidence terminates.
statements readonly string[] Leaf-first statements. The owning contract specifies compact JWTs or parsed statements.
entityConfigurations Readonly<Record<string, string>> Subject Entity Configuration JWTs used during chain validation; signatures and identity bindings still need validation.
keys JWKSet Public keys in the set; metadata sets may be empty, while Federation signing-key sets require at least one key.
expiresAt number Expiration or eligibility deadline as a NumericDate in seconds; the owning API defines the evidence it bounds.
metadata? FederationEntityMetadata Validated issuer federation metadata, including any authenticated Trust Mark endpoints.
trustMarkIssuers Readonly<Record<string, readonly string[]>> Permitted issuer identities indexed by Trust Mark type; an empty array allows any issuer under the applicable policy.
trustMarkOwners Readonly<Record<string, TrustMarkOwner>> Trusted owner identity and keys indexed by Trust Mark type.

FetchAndAttachTrustMarkOptions

Source

Retrieval and validation settings for obtaining a mark and publishing it on its holder.

interface FetchAndAttachTrustMarkOptions {
	readonly issuer: string;
	readonly trustMarkType: string;
	readonly trustAnchors: TrustAnchorSet;
	readonly replacement?: "same-issuer-and-type";
	readonly options: FederationOptions;
}

Fields (including inherited fields):

Field Declared type Description
issuer string Issuer identity for the signed artifact or configured service.
trustMarkType string Trust Mark type identifier used for issuance, verification, or filtering.
trustAnchors TrustAnchorSet Independently trusted anchor identities and their public Federation Entity Keys.
replacement? "same-issuer-and-type" When set to same-issuer-and-type, replace published references from the same issuer for this type. Omitted mode appends and ignores duplicate JWTs.
options? FederationOptions Shared federation transport and validation settings for this operation.

fetchTrustMark

Source

Fetch a Trust Mark JWT; validate it before relying on it. Configure the endpoint and authentication together from trusted configuration or validated metadata. This standalone client uses authentication.audience without an independent responder identity; getEndpointAuthentication receives no responder. Authenticated requests use POST and never retry anonymously. TrustMarkHolder.fetchAndAttachTrustMark supplies its verified issuer identity for an additional audience check.

fetchTrustMark(endpoint: string, params: FetchTrustMarkParams, options: FederationOptions): Promise<Result<string, FederationError>>;

FetchTrustMarkParams

Source

Subject and Trust Mark type selectors sent to the issuance endpoint.

interface FetchTrustMarkParams {
	trustMarkType: string;
	sub: EntityId;
}

Fields (including inherited fields):

Field Declared type Description
trustMarkType string Trust Mark type identifier used for issuance, verification, or filtering.
sub EntityId Subject of the signed artifact. An Entity Configuration is self-issued; other artifacts name their own subject.

fetchTrustMarkStatus

Source

POST a Trust Mark JWT to a Trust Mark Status endpoint and verify the response.

fetchTrustMarkStatus(input: FetchTrustMarkStatusInput): Promise<Result<TrustMarkStatusResult, FederationError>>;
fetchTrustMarkStatus(endpoint: string, trustMarkJwt: string, signerJwks: JWKSet, options: FetchTrustMarkStatusOptions): Promise<Result<TrustMarkStatusResult, FederationError>>;

The evidence-aware overload takes its endpoint and current keys from the issuer context, binds the submitted mark to the expected subject and type, and rejects response iat values beyond the allowed clock skew. An age limit is enforced only when freshness.maxAgeSeconds is supplied; there is no default maximum age. The endpoint/key overload requires independent issuer trust and does not enable that extra issued-at check by itself. Both overloads verify that the signed response refers to the exact submitted JWT; neither substitutes for validating the Trust Mark itself.

FetchTrustMarkStatusInput

Source

The mark JWT and issuer evidence used for an evidence-aware Status request.

interface FetchTrustMarkStatusInput extends FederationOptions {
	jwt: string;
	issuerEvidence: TrustMarkIssuerContext;
	expectedSubject: string;
	expectedTrustMarkType: string;
	freshness?: { maxAgeSeconds: number };
}

Fields (including inherited fields):

Field Declared type Description
jwt string Compact JWT string retained or supplied for this operation.
issuerEvidence TrustMarkIssuerContext Previously established federation issuer evidence or explicit host out-of-band trust.
expectedSubject string Subject identity that must match the verified payload.
expectedTrustMarkType string Trust Mark type that must match the verified payload.
freshness? { maxAgeSeconds: number } Optional maximum age for signed Status responses. Evidence-aware calls check iat against the allowed clock skew even when this age limit is omitted.
trustResolution? import("./trust-chain/assessment.js").TrustResolutionSource Acquisition source; protocol consumers still validate the returned subject chain.
chainSelection? ChainSelectionStrategy Select among validated candidates eligible for the current operation.
authentication? EndpointClientAuthentication Authentication settings for the endpoint or outgoing request described by this contract.
getEndpointAuthentication? EndpointAuthenticationProvider Select authentication for each outgoing federation endpoint request. Mutually exclusive with authentication.
additionalParameters? EndpointAdditionalParameters Extension selectors for outgoing requests; reserved names and conflicting fixed selectors are rejected.
trustMarkVerification? TrustMarkVerificationOptions Issuer-evidence and accreditation-resolution options for evaluating published Trust Marks.
trustMarkIssuerKeys? ReadonlyMap<string, JWKSet> Independently supplied issuer keys for evaluating published Trust Marks.
trustMarkProfiles? readonly TrustMarkProfile[] Explicitly recognized framework JWT types and their optional claim-validation policies.
offline? boolean Disallow network access when only supplied evidence is permitted.
httpClient? HttpClient Host HTTP transport; defaults to the runtime's fetch implementation.
entityConfigurations? ReadonlyMap<string, string> | undefined Subject Entity Configuration JWTs used during chain validation; signatures and identity bindings still need validation.
clock? Clock NumericDate time source; omitted clocks use the runtime's current time.
storage? FederationStorage | undefined Storage for standalone calls. Hosted calls inherit storage from their entity.
logger? Logger Optional host logger. Library calls are message-only, nonblocking, and protected from sink failures.
httpTimeoutMs? number Timeout in milliseconds for bounded transport or host callbacks; defaults to 10000.
clockSkewSeconds? number Allowed time-claim leeway in seconds; the default verifier allowance is 60 seconds.
maxChainDepth? number Maximum recursive discovery depth; defaults to 8.
maxChainLength? number Maximum statements in a validated chain, including both ECs. Default: 100; resource policy, not a protocol limit.
maxResolutionSteps? number Maximum eligible branch expansions per resolution, including reused statements. Default: 1000.
maxAuthorityHints? number Maximum authority hints examined for an entity; defaults to 10.
maxConcurrentFetches? number Maximum concurrent fetches during chain traversal and collection refresh; defaults to 6.
cacheMaxTtlSeconds? number Fetched EC and Subordinate Statement cache retention cap in seconds; defaults to 3600 and is bounded by the statement's exp. Applies to statement fetchers using a cache.
signal? AbortSignal Cancellation signal for the waiting caller and cooperative work started by this operation.
maxResponseBytes? number Maximum response or decoded token size in bytes for APIs applying this limit; the shared default is 524288.
blockedCIDRs? string[] Additional blocked IP ranges applied by URL fetch validation.
allowedHosts? string[] Optional exact hostname allowlist applied before outbound fetching.
authorityHintFilter? (hint: URL, subject: EntityId) => boolean Host predicate for accepting an authority hint before traversal.
understoodCriticalClaims? ReadonlySet<string> Extension claim names the application actually understands and processes; unknown critical claims are rejected.
maxTotalFetches? number Maximum HTTP client calls; discovery helpers share the allowance across discovery and candidate validation. Cached and supplied statements use no allowance. Core accepts zero. Default: 50.
customPolicyOperators? readonly PolicyOperatorDefinition[] Federation-defined policy operators in addition to the seven standard ones. Forwarded to resolveMetadataPolicy and applyMetadataPolicy during trust-chain validation.
customConstraintChecks? readonly ConstraintCheckDefinition[] Federation-defined constraints checked against authenticated chains. Unknown names are ignored.

FetchTrustMarkStatusOptions

Source

Verification and transport settings for a Trust Mark Status request.

interface FetchTrustMarkStatusOptions extends FederationOptions {
	expectedIssuer: string;
	clockSkewSeconds?: number;
	clock?: Clock;
}

Fields (including inherited fields):

Field Declared type Description
expectedIssuer string Issuer identity that must match the verified payload.
clockSkewSeconds? number Allowed time-claim leeway in seconds; the default verifier allowance is 60 seconds.
clock? Clock NumericDate time source; omitted clocks use the runtime's current time.
trustResolution? import("./trust-chain/assessment.js").TrustResolutionSource Acquisition source; protocol consumers still validate the returned subject chain.
chainSelection? ChainSelectionStrategy Select among validated candidates eligible for the current operation.
authentication? EndpointClientAuthentication Authentication settings for the endpoint or outgoing request described by this contract.
getEndpointAuthentication? EndpointAuthenticationProvider Select authentication for each outgoing federation endpoint request. Mutually exclusive with authentication.
additionalParameters? EndpointAdditionalParameters Extension selectors for outgoing requests; reserved names and conflicting fixed selectors are rejected.
trustMarkVerification? TrustMarkVerificationOptions Issuer-evidence and accreditation-resolution options for evaluating published Trust Marks.
trustMarkIssuerKeys? ReadonlyMap<string, JWKSet> Independently supplied issuer keys for evaluating published Trust Marks.
trustMarkProfiles? readonly TrustMarkProfile[] Explicitly recognized framework JWT types and their optional claim-validation policies.
offline? boolean Disallow network access when only supplied evidence is permitted.
httpClient? HttpClient Host HTTP transport; defaults to the runtime's fetch implementation.
entityConfigurations? ReadonlyMap<string, string> | undefined Subject Entity Configuration JWTs used during chain validation; signatures and identity bindings still need validation.
storage? FederationStorage | undefined Storage for standalone calls. Hosted calls inherit storage from their entity.
logger? Logger Optional host logger. Library calls are message-only, nonblocking, and protected from sink failures.
httpTimeoutMs? number Timeout in milliseconds for bounded transport or host callbacks; defaults to 10000.
maxChainDepth? number Maximum recursive discovery depth; defaults to 8.
maxChainLength? number Maximum statements in a validated chain, including both ECs. Default: 100; resource policy, not a protocol limit.
maxResolutionSteps? number Maximum eligible branch expansions per resolution, including reused statements. Default: 1000.
maxAuthorityHints? number Maximum authority hints examined for an entity; defaults to 10.
maxConcurrentFetches? number Maximum concurrent fetches during chain traversal and collection refresh; defaults to 6.
cacheMaxTtlSeconds? number Fetched EC and Subordinate Statement cache retention cap in seconds; defaults to 3600 and is bounded by the statement's exp. Applies to statement fetchers using a cache.
signal? AbortSignal Cancellation signal for the waiting caller and cooperative work started by this operation.
maxResponseBytes? number Maximum response or decoded token size in bytes for APIs applying this limit; the shared default is 524288.
blockedCIDRs? string[] Additional blocked IP ranges applied by URL fetch validation.
allowedHosts? string[] Optional exact hostname allowlist applied before outbound fetching.
authorityHintFilter? (hint: URL, subject: EntityId) => boolean Host predicate for accepting an authority hint before traversal.
understoodCriticalClaims? ReadonlySet<string> Extension claim names the application actually understands and processes; unknown critical claims are rejected.
maxTotalFetches? number Maximum HTTP client calls; discovery helpers share the allowance across discovery and candidate validation. Cached and supplied statements use no allowance. Core accepts zero. Default: 50.
customPolicyOperators? readonly PolicyOperatorDefinition[] Federation-defined policy operators in addition to the seven standard ones. Forwarded to resolveMetadataPolicy and applyMetadataPolicy during trust-chain validation.
customConstraintChecks? readonly ConstraintCheckDefinition[] Federation-defined constraints checked against authenticated chains. Unknown names are ignored.

HistoricalTrustMarkOptions

Source

Historical-key sources and policy for checking marks signed with retired keys.

interface HistoricalTrustMarkOptions {
	readonly mode: "on-missing-kid" | "supplied-only";
	readonly responses?: readonly string[];
	readonly maxAgeSeconds: number;
	readonly allowedRevocationReasons?: readonly string[];
	readonly securityRevocationReasons?: readonly string[];
}

Fields (including inherited fields):

Field Declared type Description
mode "on-missing-kid" | "supplied-only" Discriminator selecting the configured policy or acquisition behavior.
responses? readonly string[] Previously obtained signed Historical Keys responses; they still need verification.
maxAgeSeconds number Maximum accepted evidence age in seconds, interpreted by the owning freshness policy.
allowedRevocationReasons? readonly string[] Nonsecurity revocation reasons the historical-key policy permits.
securityRevocationReasons? readonly string[] Revocation reasons that must not be bypassed when selecting a historical key.

isStoredTrustMarkEligible

Source

Filter previously verified stored marks by active state and mark/delegation time. Apply before choosing the newest record, using exact issuer time without leeway. Ingestion must establish signature, issuer trust, and matching record fields; this predicate does not perform cryptographic or profile verification.

isStoredTrustMarkEligible(record: TrustMarkRecord, validAt: number, maxCompactBytes?: number): boolean;

OutOfBandTrustMarkIssuer

Source

Independently trusted issuer configuration supplied by the host, not discovered from an unverified mark.

interface OutOfBandTrustMarkIssuer {
	readonly kind: "out-of-band";
	readonly issuer: string;
	readonly allowedTrustMarkTypes: readonly string[];
	readonly keys: JWKSet;
	readonly trustMarkOwners?: Readonly<Record<string, TrustMarkOwner>>;
	/** Independently trusted endpoint metadata, never taken from the submitted token. */
	readonly metadata?: FederationEntityMetadata;
}

Fields (including inherited fields):

Field Declared type Description
kind "out-of-band" Discriminator selecting the evidence or acquisition mode.
issuer string Issuer identity for the signed artifact or configured service.
allowedTrustMarkTypes readonly string[] Trust Mark types explicitly allowed for this out-of-band issuer.
keys JWKSet Public keys in the set; metadata sets may be empty, while Federation signing-key sets require at least one key.
trustMarkOwners? Readonly<Record<string, TrustMarkOwner>> Trusted owner identity and keys indexed by Trust Mark type.
metadata? FederationEntityMetadata Entity metadata indexed by Entity Type Identifier. Publication may be partial; effective metadata is checked after policy.

RemoveTrustMarkSelector

Source

Selects published Trust Mark references to remove from a holder.

type RemoveTrustMarkSelector = {
	readonly jwt: string;
} | {
	readonly issuer: string;
	readonly trustMarkType: string;
};

signTrustMark

Source

Sign a Trust Mark without starting an issuer server. Accreditation is host policy.

signTrustMark(options: SignTrustMarkOptions): Promise<string>;

signTrustMarkDelegation

Source

Owner-signed issuance authorization. The base delegation typ cannot be overridden.

signTrustMarkDelegation(options: SignTrustMarkDelegationOptions): Promise<string>;

SignTrustMarkDelegationOptions

Source

Signing and extension settings for an owner's delegation JWT.

interface SignTrustMarkDelegationOptions extends TrustMarkLifetime {
	readonly issuer: string;
	readonly subject: string;
	readonly trustMarkType: string;
	readonly signer: KeyringEntry;
	readonly maxCompactBytes?: number | undefined;
	readonly clock?: Clock;
	readonly ref?: string;
	readonly additionalClaims?: Readonly<Record<string, unknown>>;
}

Fields (including inherited fields):

Field Declared type Description
issuer string Issuer identity for the signed artifact or configured service.
subject string Subject identity for the statement, mark, or authentication being processed.
trustMarkType string Trust Mark type identifier used for issuance, verification, or filtering.
signer KeyringEntry Signing capability and its public algorithm/key identifier. Private-key custody stays with the implementation.
clock? Clock NumericDate time source; omitted clocks use the runtime's current time.
ref? string Reference URL for the Trust Mark or its delegation.
additionalClaims? Readonly<Record<string, unknown>> Additional JSON claims. The owning builder rejects collisions with its reserved claims.
ttlSeconds? number Lifetime in seconds; the owning builder defines the default and whether fractions are accepted.
noExpiry? boolean Omit exp when true; cannot be combined with ttlSeconds.

SignTrustMarkOptions

Source

Signing and extension settings for a Trust Mark JWT.

interface SignTrustMarkOptions extends SignTrustMarkDelegationOptions {
	readonly logoUri?: string;
	readonly delegation?: string;
	readonly typ?: string;
	readonly trustMarkProfiles?: readonly TrustMarkProfile[];
}

Fields (including inherited fields):

Field Declared type Description
logoUri? string Optional logo URL written as logo_uri in the Trust Mark.
delegation? string Owner-signed delegation JWT authorizing the Trust Mark Issuer.
typ? string JWT type; the owning signer or verifier determines which profile types are allowed.
trustMarkProfiles? readonly TrustMarkProfile[] Explicitly recognized framework JWT types and their optional claim-validation policies.
issuer string Issuer identity for the signed artifact or configured service.
subject string Subject identity for the statement, mark, or authentication being processed.
trustMarkType string Trust Mark type identifier used for issuance, verification, or filtering.
signer KeyringEntry Signing capability and its public algorithm/key identifier. Private-key custody stays with the implementation.
clock? Clock NumericDate time source; omitted clocks use the runtime's current time.
ref? string Reference URL for the Trust Mark or its delegation.
additionalClaims? Readonly<Record<string, unknown>> Additional JSON claims. The owning builder rejects collisions with its reserved claims.
ttlSeconds? number Lifetime in seconds; the owning builder defines the default and whether fractions are accepted.
noExpiry? boolean Omit exp when true; cannot be combined with ttlSeconds.

TrustMarkDelegationIssuanceOptions

Source

Lifetime and extension claims used when issuing an owner delegation.

type TrustMarkDelegationIssuanceOptions = Omit<
	SignTrustMarkDelegationOptions,
	"issuer" | "subject" | "trustMarkType" | "signer" | "clock"
>;

Fields (including inherited fields):

Field Declared type Description
ref? string Reference URL for the Trust Mark or its delegation.
additionalClaims? Readonly<Record<string, unknown>> Additional JSON claims. The owning builder rejects collisions with its reserved claims.
ttlSeconds? number Lifetime in seconds; the owning builder defines the default and whether fractions are accepted.
noExpiry? boolean Omit exp when true; cannot be combined with ttlSeconds.

TrustMarkHolder

Source

Serializes publication mutations; a failed publisher leaves the prior references intact.

new TrustMarkHolder(subject: string, refs: readonly TrustMarkRef[], publish: (references: readonly TrustMarkRef[]) => Promise<void>): TrustMarkHolder;

TrustMarkHolder#getTrustMarks

Read the holder's currently published Trust Mark references as an independent snapshot.

Source

getTrustMarks(): TrustMarkRef[];

TrustMarkHolder#updatePublication

Notify the owning host that Trust Mark publication changed.

Source

updatePublication<T>(operation: () => Promise<T>): Promise<T>;

TrustMarkHolder#attachTrustMark

Validate a received mark for this holder before updating its publication.

Source

attachTrustMark(jwt: string, options: AttachTrustMarkOptions): Promise<void>;

TrustMarkHolder#fetchAndAttachTrustMark

Retrieve a mark using verified issuer context, validate it, and attach it to the holder on success.

Source

fetchAndAttachTrustMark(input: FetchAndAttachTrustMarkOptions): Promise<void>;

TrustMarkHolder#removeTrustMark

Remove a matching reference from future holder publication. This does not revoke the issuer's accreditation record.

Source

removeTrustMark(selector: RemoveTrustMarkSelector, options?: Pick<FederationOptions, "maxCompactBytes">): Promise<void>;

TrustMarkIssuanceOptions

Source

Claims, lifetime, and renewal choices for issuing a Trust Mark.

interface TrustMarkIssuanceOptions extends TrustMarkLifetime {
	readonly renewal?: "reuse" | "renew";
	readonly logoUri?: string;
	readonly ref?: string;
	readonly additionalClaims?: Readonly<Record<string, unknown>>;
	readonly typ?: string;
}

Fields (including inherited fields):

Field Declared type Description
renewal? "reuse" | "renew" reuse returns an eligible matching stored mark when possible; renew creates a new issuance.
logoUri? string Optional logo URL written as logo_uri in the Trust Mark.
ref? string Reference URL for the Trust Mark or its delegation.
additionalClaims? Readonly<Record<string, unknown>> Additional JSON claims. The owning builder rejects collisions with its reserved claims.
typ? string JWT type; the owning signer or verifier determines which profile types are allowed.
ttlSeconds? number Lifetime in seconds; the owning builder defines the default and whether fractions are accepted.
noExpiry? boolean Omit exp when true; cannot be combined with ttlSeconds.

TrustMarkIssuerConfig

Source

Keys, storage, lifetime defaults, delegations, and policies for a Trust Mark Issuer.

interface TrustMarkIssuerConfig {
	readonly trustMarkRequestExtensions?: Readonly<Record<string, TrustMarkRequestExtension>>;
	readonly storage: FederationStorage;
	readonly authentication?: Omit<EndpointAuthenticationConfig, "receiverEntityId" | "methods">;
	readonly defaults?: TrustMarkIssuanceOptions;
	readonly trustMarkDefaults?: Readonly<Record<string, TrustMarkIssuanceOptions>>;
	readonly delegations?: Readonly<Record<string, string>>;
	/** Independent issuer trust supplies owner keys for delegated issuance. */
	readonly issuerEvidence?: readonly TrustMarkIssuerContext[];
	readonly trustMarkStatusPolicy?: TrustMarkStatusPolicy;
}

Fields (including inherited fields):

Field Declared type Description
trustMarkRequestExtensions? Readonly<Record<string, TrustMarkRequestExtension>> Host validators for additional request parameters; unknown extension parameters are ignored.
storage FederationStorage Transactional Trust Mark storage adapter.
authentication? Omit<EndpointAuthenticationConfig, "receiverEntityId" | "methods"> Authentication settings for the endpoint or outgoing request described by this contract.
defaults? TrustMarkIssuanceOptions Issuer-wide issuance defaults, overridden by per-type settings and then per-call options.
trustMarkDefaults? Readonly<Record<string, TrustMarkIssuanceOptions>> Per-type issuance defaults, overriding issuer-wide defaults.
delegations? Readonly<Record<string, string>> Delegation JWTs indexed by Trust Mark type; setting them alone does not authenticate owner trust.
issuerEvidence? readonly TrustMarkIssuerContext[] Previously established federation issuer evidence or explicit host out-of-band trust.
trustMarkStatusPolicy? TrustMarkStatusPolicy Optional host status policy; it cannot reactivate an ineligible or revoked record.

trustMarkIssuerContext

Source

Check evidence each time it is used; plain JSON cannot impersonate a validated issuer chain.

trustMarkIssuerContext(context: TrustMarkIssuerContext, type: string, options: FederationOptions): Result<{ issuer: string; keys: JWKSet; owners: Record<string, TrustMarkOwner>; metadata?: FederationEntityMetadata; expiresAt?: number; }>;

TrustMarkIssuerContext

Source

Issuer identity and authenticated evidence used to verify its marks.

type TrustMarkIssuerContext = FederationTrustMarkIssuerEvidence | OutOfBandTrustMarkIssuer;

TrustMarkIssuerService

Source

Shared managed issuance and eligibility for Leaf and Authority hosts.

new TrustMarkIssuerService(config: TrustMarkIssuerServiceOptions): TrustMarkIssuerService;

TrustMarkIssuerService#issuer

The issuer identifier bound to this service.

Source

readonly issuer: EntityId;

TrustMarkIssuerService#updatePolicy

Update the issuer service's policy through its validated configuration boundary.

Source

updatePolicy(owners: Readonly<Record<string, TrustMarkOwner>>, issuers?: Readonly<Record<string, readonly string[]>>): void;

TrustMarkIssuerService#setDelegations

Replace this issuer service's delegation map after configuration-shape checks. Setting the map alone does not verify its JWT signatures or establish owner trust.

Source

setDelegations(delegations: Readonly<Record<string, string>>): Promise<void>;

TrustMarkIssuerService#eligibility

Evaluate stored-mark eligibility against lifetime, delegation, and issuer state.

Source

eligibility(record: TrustMarkRecord, at?: number): Promise<string>;

TrustMarkIssuerService#listTrustMarksForSubject

List eligible marks issued for the subject under this issuer's state.

Source

listTrustMarksForSubject(subject: string): Promise<TrustMarkRecord[]>;

TrustMarkIssuerService#getTrustMark

Retrieve an eligible, already-issued mark for the requested subject and type.

Source

getTrustMark(subject: string, type: string): Promise<string | undefined>;

TrustMarkIssuerService#listTrustMarkedEntities

List subjects currently eligible for the requested mark type.

Source

listTrustMarkedEntities(type: string, subject?: string): Promise<string[]>;

TrustMarkIssuerService#revokeTrustMark

Revoke matching active issuer records for the type and subject.

Source

revokeTrustMark(type: string, subject: string): Promise<void>;

TrustMarkIssuerService#issueTrustMark

Issue or reuse a stored mark according to the issuer's policy and requested renewal/lifetime options.

Source

issueTrustMark(subject: string, type: string, requested?: TrustMarkIssuanceOptions): Promise<string>;

TrustMarkIssuerService#handleRequest

Handle a Web API Request and return the protocol Response. The application supplies external HTTPS routing.

Source

handleRequest(kind: "status" | "list" | "retrieval", request: Request): Promise<Response>;

TrustMarkIssuerService#assessTrustMarkStatus

Assess current status without signing; unknown instances have no assessment.

Source

assessTrustMarkStatus(jwt: string): Promise<TrustMarkStatusAssessment | undefined>;

TrustMarkIssuerService#statusResponse

Build the issuer's signed status response from authoritative mark eligibility and any configured status policy.

Source

statusResponse(jwt: string): Promise<string | undefined>;

TrustMarkIssuerServiceOptions

Source

HTTP endpoint and authentication settings for a hosted Trust Mark Issuer service.

interface TrustMarkIssuerServiceOptions extends TrustMarkIssuerConfig {
	readonly issuer: string;
	readonly statusEndpointPublished?: boolean;
	readonly crypto: CryptoContext;
	readonly options: FederationOptions;
	/** Local Trust Anchor policy; do not populate from unverified token claims. */
	readonly trustMarkOwners?: Readonly<Record<string, TrustMarkOwner>>;
	readonly trustMarkIssuers?: Readonly<Record<string, readonly string[]>>;
}

Fields (including inherited fields):

Field Declared type Description
issuer string Issuer identity for the signed artifact or configured service.
statusEndpointPublished? boolean Whether the issuer advertises a Status endpoint, used for non-expiring-mark guidance.
crypto CryptoContext Provider of current Federation Entity Keys and the active signer.
options FederationOptions Required federation settings. Match the storage adapter’s registry, profiles, and compact token limit.
trustMarkOwners? Readonly<Record<string, TrustMarkOwner>> Trusted owner identity and keys indexed by Trust Mark type.
trustMarkIssuers? Readonly<Record<string, readonly string[]>> Permitted issuer identities indexed by Trust Mark type; an empty array allows any issuer under the applicable policy.
trustMarkRequestExtensions? Readonly<Record<string, TrustMarkRequestExtension>> Host validators for additional request parameters; unknown extension parameters are ignored.
storage FederationStorage Transactional Trust Mark storage adapter.
authentication? Omit<EndpointAuthenticationConfig, "receiverEntityId" | "methods"> Authentication settings for the endpoint or outgoing request described by this contract.
defaults? TrustMarkIssuanceOptions Issuer-wide issuance defaults, overridden by per-type settings and then per-call options.
trustMarkDefaults? Readonly<Record<string, TrustMarkIssuanceOptions>> Per-type issuance defaults, overriding issuer-wide defaults.
delegations? Readonly<Record<string, string>> Delegation JWTs indexed by Trust Mark type; setting them alone does not authenticate owner trust.
issuerEvidence? readonly TrustMarkIssuerContext[] Previously established federation issuer evidence or explicit host out-of-band trust.
trustMarkStatusPolicy? TrustMarkStatusPolicy Optional host status policy; it cannot reactivate an ineligible or revoked record.

TrustMarkLifetime

Source

The choice between an expiring Trust Mark and one without an exp claim.

interface TrustMarkLifetime {
	readonly ttlSeconds?: number;
	readonly noExpiry?: boolean;
}

Fields (including inherited fields):

Field Declared type Description
ttlSeconds? number Lifetime in seconds; the owning builder defines the default and whether fractions are accepted.
noExpiry? boolean Omit exp when true; cannot be combined with ttlSeconds.

TrustMarkListOptions

Source

Selectors and paging settings for reading an issuer's stored marks.

interface TrustMarkListOptions {
	readonly subject?: EntityId;
	/** Subject of the first unreturned record; inclusive. */
	readonly cursor?: EntityId;
	readonly limit: number;
}

Fields (including inherited fields):

Field Declared type Description
subject? EntityId Subject identity for the statement, mark, or authentication being processed.
cursor? EntityId Subject of the first unreturned record; inclusive.
limit number Requested maximum number of entries on a page.

TrustMarkListPage

Source

One page of stored Trust Mark records and its continuation information.

interface TrustMarkListPage {
	readonly items: TrustMarkRecord[];
	readonly nextCursor?: EntityId;
}

Fields (including inherited fields):

Field Declared type Description
items TrustMarkRecord[] Stored Trust Mark records returned on this page.
nextCursor? EntityId Continuation cursor for the next stored-record page, when one exists.

TrustMarkProfile

Source

An explicitly recognized framework JWT type, scoped to its Trust Mark types.

interface TrustMarkProfile {
	readonly typ: string;
	readonly trustMarkTypes: readonly string[];
	readonly validateClaims?: (
		claims: Readonly<Record<string, unknown>>,
	) => Result<void> | Promise<Result<void>>;
}

Fields (including inherited fields):

Field Declared type Description
typ string Recognized framework Trust Mark JWT typ; delegation JWT types cannot be registered here.
trustMarkTypes readonly string[] Trust Mark type identifiers explicitly covered by this framework profile.
validateClaims? ( claims: Readonly<Record<string, unknown>>, ) => Result<void> | Promise<Result<void>> Host framework claim validation after base Trust Mark checks; return false or a failing Result to reject.

TrustMarkRecord

Source

Stored fields mirror the signed JWT's type, subject, iat, and optional exp. Ingestion establishes the JWT's signature and issuer trust before storing it.

interface TrustMarkRecord {
	readonly trustMarkType: string;
	readonly subject: EntityId;
	readonly jwt: string;
	readonly issuedAt: number;
	readonly expiresAt?: number;
	readonly active: boolean;
	readonly revokedAt?: number;
	readonly extensions?: JsonObject;
}

Fields (including inherited fields):

Field Declared type Description
trustMarkType string Trust Mark type identifier used for issuance, verification, or filtering.
subject EntityId Subject identity for the statement, mark, or authentication being processed.
jwt string Compact JWT string retained or supplied for this operation.
issuedAt number Issuance time as a NumericDate in seconds.
expiresAt? number Expiration or eligibility deadline as a NumericDate in seconds; the owning API defines the evidence it bounds.
active boolean Whether the issuer's local record remains active.
revokedAt? number NumericDate when the issuer recorded revocation.
extensions? JsonObject Private JSON data for the storage adapter.

TrustMarkRequestContext

Source

Request and authentication information supplied to a Trust Mark endpoint extension.

interface TrustMarkRequestContext {
	readonly endpoint: "status" | "list" | "retrieval";
	readonly issuer: string;
	readonly caller?: string;
	readonly parameters: Readonly<Record<string, readonly string[]>>;
}

Fields (including inherited fields):

Field Declared type Description
endpoint "status" | "list" | "retrieval" Serving or remote endpoint URL; request extension contexts use status, list, or retrieval instead.
issuer string Issuer identity for the signed artifact or configured service.
caller? string Authenticated caller Entity Identifier, when authentication succeeded.
parameters Readonly<Record<string, readonly string[]>> Form parameter names or values supplied to this authentication or extension contract.

TrustMarkRequestExtension

Source

A host-defined extension for a Trust Mark request parameter.

type TrustMarkRequestExtension = (
	values: readonly string[],
	context: Readonly<TrustMarkRequestContext>,
) => Result<void> | Promise<Result<void>>;

TrustMarkRequirements

Source

Application accreditation requirements, applied after Federation chain validation.

interface TrustMarkRequirements {
	readonly requiredTypes?: readonly string[];
	readonly requireAllPublished?: boolean;
}

Fields (including inherited fields):

Field Declared type Description
requiredTypes? readonly string[] Trust Mark types for which the caller requires currently usable verified evidence.
requireAllPublished? boolean Require every published Trust Mark to be verified, in addition to any required type list.

TrustMarkStatusAssessment

Source

A Trust Mark Status response payload and its verification deadline.

interface TrustMarkStatusAssessment {
	readonly payload: Readonly<TrustMarkStatusResponsePayload>;
	readonly verificationExpiresAt?: number;
}

Fields (including inherited fields):

Field Declared type Description
payload Readonly<TrustMarkStatusResponsePayload> Decoded claims; their verification state is determined by the enclosing result.
verificationExpiresAt? number Deadline of the evidence supporting verification, which can precede the signed token's exp.

TrustMarkStatusPolicy

Source

A callback through which the issuer applies its own status policy.

type TrustMarkStatusPolicy = (context: TrustMarkStatusPolicyContext) => {
	readonly status: string;
	readonly additionalClaims?: Readonly<Record<string, unknown>>;
} | Promise<{
	readonly status: string;
	readonly additionalClaims?: Readonly<Record<string, unknown>>;
}>;

TrustMarkStatusPolicyContext

Source

The mark and base status supplied to the issuer's status policy.

interface TrustMarkStatusPolicyContext {
	readonly baseStatus: string;
	readonly record: Readonly<TrustMarkRecord>;
}

Fields (including inherited fields):

Field Declared type Description
baseStatus string Status determined from authoritative issuer records before applying the optional host policy.
record Readonly<TrustMarkRecord> Stored issuance record supplied to the status policy as detached read-only evidence.

TrustMarkStatusResult

Source

A mark's status together with the information returned by the status operation.

interface TrustMarkStatusResult {
	jwt: string;
	claims: Readonly<Record<string, unknown>>;
	verificationExpiresAt?: number;
	/** Additional status strings are permitted by Federation §8.4.2. */
	status: string;
	issuer: EntityId;
	issuedAt: number;
}

Fields (including inherited fields):

Field Declared type Description
jwt string Compact JWT string retained or supplied for this operation.
claims Readonly<Record<string, unknown>> Claims associated with the artifact or selected for this operation.
verificationExpiresAt? number Deadline of the evidence supporting verification, which can precede the signed token's exp.
status string Reported mark status; active is the interoperable positive value, while other strings may be profile-defined.
issuer EntityId Issuer identity for the signed artifact or configured service.
issuedAt number Issuance time as a NumericDate in seconds.

TrustMarkStore

Implement the Trust Mark repository for FederationStorage.trustMark. The repository stores exact JWTs, supports issuer-scoped queries, and exposes a revision covering every effective write. The service checks eligibility under current evidence before using a candidate.

TrustMarkValidationOptions

Source

Expected identities, time policy, and delegation settings for validating a mark.

interface TrustMarkValidationOptions extends FederationOptions {
	trustMarkOwners?: Record<string, TrustMarkOwner>;
	/** Entity whose configuration contains this mark; supply independently of the JWT (§7.3). */
	expectedSubject: string;
	expectedTrustMarkType?: string;
}

Fields (including inherited fields):

Field Declared type Description
trustMarkOwners? Record<string, TrustMarkOwner> Trusted owner identity and keys indexed by Trust Mark type.
expectedSubject string Subject identity that must match the verified payload.
expectedTrustMarkType? string Trust Mark type that must match the verified payload.
trustResolution? import("./trust-chain/assessment.js").TrustResolutionSource Acquisition source; protocol consumers still validate the returned subject chain.
chainSelection? ChainSelectionStrategy Select among validated candidates eligible for the current operation.
authentication? EndpointClientAuthentication Authentication settings for the endpoint or outgoing request described by this contract.
getEndpointAuthentication? EndpointAuthenticationProvider Select authentication for each outgoing federation endpoint request. Mutually exclusive with authentication.
additionalParameters? EndpointAdditionalParameters Extension selectors for outgoing requests; reserved names and conflicting fixed selectors are rejected.
trustMarkVerification? TrustMarkVerificationOptions Issuer-evidence and accreditation-resolution options for evaluating published Trust Marks.
trustMarkIssuerKeys? ReadonlyMap<string, JWKSet> Independently supplied issuer keys for evaluating published Trust Marks.
trustMarkProfiles? readonly TrustMarkProfile[] Explicitly recognized framework JWT types and their optional claim-validation policies.
offline? boolean Disallow network access when only supplied evidence is permitted.
httpClient? HttpClient Host HTTP transport; defaults to the runtime's fetch implementation.
entityConfigurations? ReadonlyMap<string, string> | undefined Subject Entity Configuration JWTs used during chain validation; signatures and identity bindings still need validation.
clock? Clock NumericDate time source; omitted clocks use the runtime's current time.
storage? FederationStorage | undefined Storage for standalone calls. Hosted calls inherit storage from their entity.
logger? Logger Optional host logger. Library calls are message-only, nonblocking, and protected from sink failures.
httpTimeoutMs? number Timeout in milliseconds for bounded transport or host callbacks; defaults to 10000.
clockSkewSeconds? number Allowed time-claim leeway in seconds; the default verifier allowance is 60 seconds.
maxChainDepth? number Maximum recursive discovery depth; defaults to 8.
maxChainLength? number Maximum statements in a validated chain, including both ECs. Default: 100; resource policy, not a protocol limit.
maxResolutionSteps? number Maximum eligible branch expansions per resolution, including reused statements. Default: 1000.
maxAuthorityHints? number Maximum authority hints examined for an entity; defaults to 10.
maxConcurrentFetches? number Maximum concurrent fetches during chain traversal and collection refresh; defaults to 6.
cacheMaxTtlSeconds? number Fetched EC and Subordinate Statement cache retention cap in seconds; defaults to 3600 and is bounded by the statement's exp. Applies to statement fetchers using a cache.
signal? AbortSignal Cancellation signal for the waiting caller and cooperative work started by this operation.
maxResponseBytes? number Maximum response or decoded token size in bytes for APIs applying this limit; the shared default is 524288.
blockedCIDRs? string[] Additional blocked IP ranges applied by URL fetch validation.
allowedHosts? string[] Optional exact hostname allowlist applied before outbound fetching.
authorityHintFilter? (hint: URL, subject: EntityId) => boolean Host predicate for accepting an authority hint before traversal.
understoodCriticalClaims? ReadonlySet<string> Extension claim names the application actually understands and processes; unknown critical claims are rejected.
maxTotalFetches? number Maximum HTTP client calls; discovery helpers share the allowance across discovery and candidate validation. Cached and supplied statements use no allowance. Core accepts zero. Default: 50.
customPolicyOperators? readonly PolicyOperatorDefinition[] Federation-defined policy operators in addition to the seven standard ones. Forwarded to resolveMetadataPolicy and applyMetadataPolicy during trust-chain validation.
customConstraintChecks? readonly ConstraintCheckDefinition[] Federation-defined constraints checked against authenticated chains. Unknown names are ignored.

TrustMarkVerificationOptions

Source

Issuer evidence, accreditation anchors, resolution mode, and historical-key settings for published marks.

interface TrustMarkVerificationOptions {
	readonly mode?: "provided" | "resolve";
	readonly issuerEvidence?: readonly TrustMarkIssuerContext[];
	readonly trustAnchors?: TrustAnchorSet;
	readonly historicalKeys?: HistoricalTrustMarkOptions;
}

Fields (including inherited fields):

Field Declared type Description
mode? "provided" | "resolve" Discriminator selecting the configured policy or acquisition behavior.
issuerEvidence? readonly TrustMarkIssuerContext[] Previously established federation issuer evidence or explicit host out-of-band trust.
trustAnchors? TrustAnchorSet Independently trusted anchor identities and their public Federation Entity Keys.
historicalKeys? HistoricalTrustMarkOptions Historical-key source and freshness policy; signature failures do not trigger a historical-key retry.

validateTrustMark

Source

Validate a Trust Mark using the supplied issuer keys and owner/issuer policy. This low-level call does not discover accreditation trust for you.

validateTrustMark(trustMarkJwt: string, trustMarkIssuers: Record<string, string[]>, issuerJwks: JWKSet, options: TrustMarkValidationOptions): Promise<Result<TrustMarkEvidence, FederationError>>;

Source

Fetch an HTTPS logo URL and check for a successful HTTP response whose media type begins with image/. This helper does not decode image bytes, enforce a body-size limit, or establish accreditation. Non-HTTPS URLs and fragments are rejected by this helper even though the Trust Mark claim's URL syntax is broader.

validateTrustMarkLogo(url: string, options: ValidateTrustMarkLogoOptions): Promise<Result<{ contentType: string }, FederationError>>;

ValidateTrustMarkLogoOptions

Source

Controls for validating a Trust Mark's logo URI.

interface ValidateTrustMarkLogoOptions extends FederationOptions {}

Fields (including inherited fields):

Field Declared type Description
trustResolution? import("./trust-chain/assessment.js").TrustResolutionSource Acquisition source; protocol consumers still validate the returned subject chain.
chainSelection? ChainSelectionStrategy Select among validated candidates eligible for the current operation.
authentication? EndpointClientAuthentication Authentication settings for the endpoint or outgoing request described by this contract.
getEndpointAuthentication? EndpointAuthenticationProvider Select authentication for each outgoing federation endpoint request. Mutually exclusive with authentication.
additionalParameters? EndpointAdditionalParameters Extension selectors for outgoing requests; reserved names and conflicting fixed selectors are rejected.
trustMarkVerification? TrustMarkVerificationOptions Issuer-evidence and accreditation-resolution options for evaluating published Trust Marks.
trustMarkIssuerKeys? ReadonlyMap<string, JWKSet> Independently supplied issuer keys for evaluating published Trust Marks.
trustMarkProfiles? readonly TrustMarkProfile[] Explicitly recognized framework JWT types and their optional claim-validation policies.
offline? boolean Disallow network access when only supplied evidence is permitted.
httpClient? HttpClient Host HTTP transport; defaults to the runtime's fetch implementation.
entityConfigurations? ReadonlyMap<string, string> | undefined Subject Entity Configuration JWTs used during chain validation; signatures and identity bindings still need validation.
clock? Clock NumericDate time source; omitted clocks use the runtime's current time.
storage? FederationStorage | undefined Storage for standalone calls. Hosted calls inherit storage from their entity.
logger? Logger Optional host logger. Library calls are message-only, nonblocking, and protected from sink failures.
httpTimeoutMs? number Timeout in milliseconds for bounded transport or host callbacks; defaults to 10000.
clockSkewSeconds? number Allowed time-claim leeway in seconds; the default verifier allowance is 60 seconds.
maxChainDepth? number Maximum recursive discovery depth; defaults to 8.
maxChainLength? number Maximum statements in a validated chain, including both ECs. Default: 100; resource policy, not a protocol limit.
maxResolutionSteps? number Maximum eligible branch expansions per resolution, including reused statements. Default: 1000.
maxAuthorityHints? number Maximum authority hints examined for an entity; defaults to 10.
maxConcurrentFetches? number Maximum concurrent fetches during chain traversal and collection refresh; defaults to 6.
cacheMaxTtlSeconds? number Fetched EC and Subordinate Statement cache retention cap in seconds; defaults to 3600 and is bounded by the statement's exp. Applies to statement fetchers using a cache.
signal? AbortSignal Cancellation signal for the waiting caller and cooperative work started by this operation.
maxResponseBytes? number Maximum response or decoded token size in bytes for APIs applying this limit; the shared default is 524288.
blockedCIDRs? string[] Additional blocked IP ranges applied by URL fetch validation.
allowedHosts? string[] Optional exact hostname allowlist applied before outbound fetching.
authorityHintFilter? (hint: URL, subject: EntityId) => boolean Host predicate for accepting an authority hint before traversal.
understoodCriticalClaims? ReadonlySet<string> Extension claim names the application actually understands and processes; unknown critical claims are rejected.
maxTotalFetches? number Maximum HTTP client calls; discovery helpers share the allowance across discovery and candidate validation. Cached and supplied statements use no allowance. Core accepts zero. Default: 50.
customPolicyOperators? readonly PolicyOperatorDefinition[] Federation-defined policy operators in addition to the seven standard ones. Forwarded to resolveMetadataPolicy and applyMetadataPolicy during trust-chain validation.
customConstraintChecks? readonly ConstraintCheckDefinition[] Federation-defined constraints checked against authenticated chains. Unknown names are ignored.

validateTrustMarkWithIssuer

Source

Validate a mark with established federation issuer evidence or explicit out-of-band issuer trust, including applicable delegation and historical-key rules.

validateTrustMarkWithIssuer(jwt: string, context: TrustMarkIssuerContext, input: ValidateTrustMarkWithIssuerOptions): Promise<Result<TrustMarkEvidence>>;

ValidateTrustMarkWithIssuerOptions

Source

Expected mark type, holder, time, and historical-key settings used with issuer evidence.

interface ValidateTrustMarkWithIssuerOptions extends TrustMarkValidationOptions {
	readonly expectedTrustMarkType: string;
	readonly historicalKeys?: HistoricalTrustMarkOptions;
}

Fields (including inherited fields):

Field Declared type Description
expectedTrustMarkType string Trust Mark type that must match the verified payload.
historicalKeys? HistoricalTrustMarkOptions Historical-key source and freshness policy; signature failures do not trigger a historical-key retry.
trustMarkOwners? Record<string, TrustMarkOwner> Trusted owner identity and keys indexed by Trust Mark type.
expectedSubject string Subject identity that must match the verified payload.
trustResolution? import("./trust-chain/assessment.js").TrustResolutionSource Acquisition source; protocol consumers still validate the returned subject chain.
chainSelection? ChainSelectionStrategy Select among validated candidates eligible for the current operation.
authentication? EndpointClientAuthentication Authentication settings for the endpoint or outgoing request described by this contract.
getEndpointAuthentication? EndpointAuthenticationProvider Select authentication for each outgoing federation endpoint request. Mutually exclusive with authentication.
additionalParameters? EndpointAdditionalParameters Extension selectors for outgoing requests; reserved names and conflicting fixed selectors are rejected.
trustMarkVerification? TrustMarkVerificationOptions Issuer-evidence and accreditation-resolution options for evaluating published Trust Marks.
trustMarkIssuerKeys? ReadonlyMap<string, JWKSet> Independently supplied issuer keys for evaluating published Trust Marks.
trustMarkProfiles? readonly TrustMarkProfile[] Explicitly recognized framework JWT types and their optional claim-validation policies.
offline? boolean Disallow network access when only supplied evidence is permitted.
httpClient? HttpClient Host HTTP transport; defaults to the runtime's fetch implementation.
entityConfigurations? ReadonlyMap<string, string> | undefined Subject Entity Configuration JWTs used during chain validation; signatures and identity bindings still need validation.
clock? Clock NumericDate time source; omitted clocks use the runtime's current time.
storage? FederationStorage | undefined Storage for standalone calls. Hosted calls inherit storage from their entity.
logger? Logger Optional host logger. Library calls are message-only, nonblocking, and protected from sink failures.
httpTimeoutMs? number Timeout in milliseconds for bounded transport or host callbacks; defaults to 10000.
clockSkewSeconds? number Allowed time-claim leeway in seconds; the default verifier allowance is 60 seconds.
maxChainDepth? number Maximum recursive discovery depth; defaults to 8.
maxChainLength? number Maximum statements in a validated chain, including both ECs. Default: 100; resource policy, not a protocol limit.
maxResolutionSteps? number Maximum eligible branch expansions per resolution, including reused statements. Default: 1000.
maxAuthorityHints? number Maximum authority hints examined for an entity; defaults to 10.
maxConcurrentFetches? number Maximum concurrent fetches during chain traversal and collection refresh; defaults to 6.
cacheMaxTtlSeconds? number Fetched EC and Subordinate Statement cache retention cap in seconds; defaults to 3600 and is bounded by the statement's exp. Applies to statement fetchers using a cache.
signal? AbortSignal Cancellation signal for the waiting caller and cooperative work started by this operation.
maxResponseBytes? number Maximum response or decoded token size in bytes for APIs applying this limit; the shared default is 524288.
blockedCIDRs? string[] Additional blocked IP ranges applied by URL fetch validation.
allowedHosts? string[] Optional exact hostname allowlist applied before outbound fetching.
authorityHintFilter? (hint: URL, subject: EntityId) => boolean Host predicate for accepting an authority hint before traversal.
understoodCriticalClaims? ReadonlySet<string> Extension claim names the application actually understands and processes; unknown critical claims are rejected.
maxTotalFetches? number Maximum HTTP client calls; discovery helpers share the allowance across discovery and candidate validation. Cached and supplied statements use no allowance. Core accepts zero. Default: 50.
customPolicyOperators? readonly PolicyOperatorDefinition[] Federation-defined policy operators in addition to the seven standard ones. Forwarded to resolveMetadataPolicy and applyMetadataPolicy during trust-chain validation.
customConstraintChecks? readonly ConstraintCheckDefinition[] Federation-defined constraints checked against authenticated chains. Unknown names are ignored.
View source on GitHub