smartacme/dist/smartacme.classes.smartacme.d.ts

33 lines
923 B
TypeScript
Raw Normal View History

2017-01-14 17:36:33 +00:00
import { AcmeAccount } from './smartacme.classes.acmeaccount';
/**
* a rsa keypair needed for account creation and subsequent requests
*/
export interface IRsaKeypair {
publicKey: string;
privateKey: string;
2017-01-14 13:14:50 +00:00
}
2017-01-14 17:36:33 +00:00
export { AcmeAccount } from './smartacme.classes.acmeaccount';
2017-01-25 01:45:48 +00:00
export { AcmeCert, ISmartAcmeChallenge, ISmartAcmeChallengeChosen } from './smartacme.classes.acmecert';
2016-11-11 13:17:50 +00:00
/**
* class SmartAcme exports methods for maintaining SSL Certificates
*/
2016-11-01 17:27:57 +00:00
export declare class SmartAcme {
acmeUrl: string;
2016-11-11 13:17:50 +00:00
productionBool: boolean;
keyPair: IRsaKeypair;
2017-01-01 20:20:12 +00:00
rawacmeClient: any;
2016-11-07 17:41:52 +00:00
/**
* the constructor for class SmartAcme
2016-11-07 17:41:52 +00:00
*/
constructor(productionArg?: boolean);
2016-11-07 17:41:52 +00:00
/**
2017-01-14 17:36:33 +00:00
* init the smartacme instance
2017-01-01 20:20:12 +00:00
*/
2017-04-28 16:56:55 +00:00
init(): Promise<{}>;
2017-01-01 23:18:51 +00:00
/**
2017-01-14 17:36:33 +00:00
* creates an account if not currently present in module
* @executes ASYNC
2017-01-01 23:18:51 +00:00
*/
2017-04-28 16:56:55 +00:00
createAcmeAccount(): Promise<AcmeAccount>;
2016-11-01 17:27:57 +00:00
}