1 |
|
2 |
|
3 | import { SecureServerOptions } from 'http2';
|
4 | export interface KeyCertPair {
|
5 | private_key: Buffer;
|
6 | cert_chain: Buffer;
|
7 | }
|
8 | export declare abstract class ServerCredentials {
|
9 | abstract _isSecure(): boolean;
|
10 | abstract _getSettings(): SecureServerOptions | null;
|
11 | abstract _equals(other: ServerCredentials): boolean;
|
12 | static createInsecure(): ServerCredentials;
|
13 | static createSsl(rootCerts: Buffer | null, keyCertPairs: KeyCertPair[], checkClientCertificate?: boolean): ServerCredentials;
|
14 | }
|