mirror of
https://github.com/musix-org/musix-oss
synced 2025-12-13 01:50:08 +00:00
13 lines
480 B
TypeScript
13 lines
480 B
TypeScript
/// <reference types="node" />
|
|
import { SecureServerOptions } from 'http2';
|
|
export interface KeyCertPair {
|
|
private_key: Buffer;
|
|
cert_chain: Buffer;
|
|
}
|
|
export declare abstract class ServerCredentials {
|
|
abstract _isSecure(): boolean;
|
|
abstract _getSettings(): SecureServerOptions | null;
|
|
static createInsecure(): ServerCredentials;
|
|
static createSsl(rootCerts: Buffer | null, keyCertPairs: KeyCertPair[], checkClientCertificate?: boolean): ServerCredentials;
|
|
}
|