Files
NapCatQQ/.pnpm-store/v3/files/06/8244db8101fd883a024d4f0cc59174bf6f47c4751132cf4ab0ead0bd981eac020f072d4eddaf1d22ca14305e0f43451e5178e756ea566ff730adfa58d5dbce
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

39 lines
1.4 KiB
Plaintext

import type { AttestationFormat } from '../helpers/decodeAttestationObject.js';
import type { Uint8Array_ } from '../types/index.js';
export type RootCertIdentifier = AttestationFormat | 'mds';
interface SettingsService {
/**
* Set potential root certificates for attestation formats that use them. Root certs will be tried
* one-by-one when validating a certificate path.
*
* Certificates can be specified as a raw `Buffer`, or as a PEM-formatted string. If a
* `Buffer` is passed in it will be converted to PEM format.
*/
setRootCertificates(opts: {
identifier: RootCertIdentifier;
certificates: (Uint8Array_ | string)[];
}): void;
/**
* Get any registered root certificates for the specified attestation format
*/
getRootCertificates(opts: {
identifier: RootCertIdentifier;
}): string[];
}
/**
* A basic service for specifying acceptable root certificates for all supported attestation
* statement formats.
*
* In addition, default root certificates are included for the following statement formats:
*
* - `'android-key'`
* - `'android-safetynet'`
* - `'apple'`
* - `'android-mds'`
*
* These can be overwritten as needed by setting alternative root certificates for their format
* identifier using `setRootCertificates()`.
*/
export declare const SettingsService: SettingsService;
export {};
//# sourceMappingURL=settingsService.d.ts.map