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

35 lines
977 B
TypeScript
Raw Normal View History

2016-11-11 13:17:50 +00:00
/// <reference types="q" />
import * as q from 'q';
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';
export { AcmeCert, ISmartAcmeChallenge, ISmartAcmeChallengeAccepted } 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-01-14 17:36:33 +00:00
init(): q.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-01-14 17:36:33 +00:00
createAccount(): q.Promise<AcmeAccount>;
2016-11-01 17:27:57 +00:00
}