AxUCPHTTPMessageVerifier Generated TypeScript API reference. typescript api api/reference build/apidocs/Class.AxUCPHTTPMessageVerifier.md class AxUCPHTTPMessageVerifier

AxUCPHTTPMessageVerifier

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/signing.ts#L248

Stateful RFC 9421 response verifier with profile-key rotation support.

Constructors

Constructor

TypeScript
new AxUCPHTTPMessageVerifier(options: Readonly<AxUCPHTTPMessageVerificationOptions>): AxUCPHTTPMessageVerifier;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/signing.ts#L251

Parameters

ParameterType
optionsReadonly<AxUCPHTTPMessageVerificationOptions>

Returns

AxUCPHTTPMessageVerifier

Methods

clearReplayCache()

TypeScript
clearReplayCache(): void;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/signing.ts#L535

Returns

void


verify()

TypeScript
verify(response: Response, context: Readonly<{
  body: string;
  refreshSigningKeys?: () => 
     | readonly Record<string, unknown>[]
    | Promise<readonly Record<string, unknown>[]>;
  signingKeys: readonly Record<string, unknown>[];
}>): Promise<void>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/signing.ts#L255

Parameters

ParameterType
responseResponse
contextReadonly<{ body: string; refreshSigningKeys?: () => | readonly Record<string, unknown>[] | Promise<readonly Record<string, unknown>[]>; signingKeys: readonly Record<string, unknown>[]; }>

Returns

Promise<void>


verifyRequest()

TypeScript
verifyRequest(request: Request, context: Readonly<{
  body: string;
  refreshSigningKeys?: () => 
     | readonly Record<string, unknown>[]
    | Promise<readonly Record<string, unknown>[]>;
  signingKeys: readonly Record<string, unknown>[];
}>): Promise<void>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/signing.ts#L389

Parameters

ParameterType
requestRequest
contextReadonly<{ body: string; refreshSigningKeys?: () => | readonly Record<string, unknown>[] | Promise<readonly Record<string, unknown>[]>; signingKeys: readonly Record<string, unknown>[]; }>

Returns

Promise<void>

Docs