1 |
|
2 | import { OAuthLevel } from "./models";
|
3 | export declare enum CertOptions {
|
4 | Default = 0,
|
5 | PEM = 1,
|
6 | PFX = 2
|
7 | }
|
8 | export default abstract class ConfigurationBase {
|
9 | readonly host: string;
|
10 | readonly port: number;
|
11 | readonly enableAccessLog: boolean;
|
12 | readonly accessLogWriteStream?: NodeJS.WritableStream | undefined;
|
13 | readonly enableDebugLog: boolean;
|
14 | readonly debugLogFilePath?: string | undefined;
|
15 | readonly loose: boolean;
|
16 | readonly skipApiVersionCheck: boolean;
|
17 | readonly cert: string;
|
18 | readonly key: string;
|
19 | readonly pwd: string;
|
20 | readonly oauth?: string | undefined;
|
21 | constructor(host: string, port: number, enableAccessLog?: boolean, accessLogWriteStream?: NodeJS.WritableStream | undefined, enableDebugLog?: boolean, debugLogFilePath?: string | undefined, loose?: boolean, skipApiVersionCheck?: boolean, cert?: string, key?: string, pwd?: string, oauth?: string | undefined);
|
22 | hasCert(): CertOptions;
|
23 | getCert(option: any): {
|
24 | cert: Buffer;
|
25 | key: Buffer;
|
26 | pfx?: undefined;
|
27 | passphrase?: undefined;
|
28 | } | {
|
29 | pfx: Buffer;
|
30 | passphrase: string;
|
31 | cert?: undefined;
|
32 | key?: undefined;
|
33 | } | null;
|
34 | getOAuthLevel(): undefined | OAuthLevel;
|
35 | getHttpServerAddress(): string;
|
36 | }
|
37 |
|
\ | No newline at end of file |