Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
28 lines
1.1 KiB
Plaintext
28 lines
1.1 KiB
Plaintext
import type { JWK } from '../types';
|
|
/**
|
|
* Calculates a base64url-encoded JSON Web Key (JWK) Thumbprint
|
|
*
|
|
* This function is exported (as a named export) from the main `'jose'` module entry point as well
|
|
* as from its subpath export `'jose/jwk/thumbprint'`.
|
|
*
|
|
* @param jwk JSON Web Key.
|
|
* @param digestAlgorithm Digest Algorithm to use for calculating the thumbprint. Default is
|
|
* "sha256".
|
|
*
|
|
* @see {@link https://www.rfc-editor.org/rfc/rfc7638 RFC7638}
|
|
*/
|
|
export declare function calculateJwkThumbprint(jwk: JWK, digestAlgorithm?: 'sha256' | 'sha384' | 'sha512'): Promise<string>;
|
|
/**
|
|
* Calculates a JSON Web Key (JWK) Thumbprint URI
|
|
*
|
|
* This function is exported (as a named export) from the main `'jose'` module entry point as well
|
|
* as from its subpath export `'jose/jwk/thumbprint'`.
|
|
*
|
|
* @param jwk JSON Web Key.
|
|
* @param digestAlgorithm Digest Algorithm to use for calculating the thumbprint. Default is
|
|
* "sha256".
|
|
*
|
|
* @see {@link https://www.rfc-editor.org/rfc/rfc9278 RFC9278}
|
|
*/
|
|
export declare function calculateJwkThumbprintUri(jwk: JWK, digestAlgorithm?: 'sha256' | 'sha384' | 'sha512'): Promise<string>;
|