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

43 lines
1.3 KiB
TypeScript
Raw Normal View History

2016-11-11 13:17:50 +00:00
/// <reference types="q" />
import 'typings-global';
import * as q from 'q';
import { SmartacmeHelper, IRsaKeypair } from './smartacme.classes.helper';
2017-01-01 23:18:51 +00:00
export declare type TChallenge = 'dns-01' | 'http-01';
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 {
helper: SmartacmeHelper;
acmeUrl: string;
2016-11-11 13:17:50 +00:00
productionBool: boolean;
keyPair: IRsaKeypair;
2017-01-01 20:20:12 +00:00
location: string;
link: string;
rawacmeClient: any;
JWK: 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
/**
2016-11-11 13:17:50 +00:00
* creates an account if not currently present in module
* @executes ASYNC
2016-11-07 17:41:52 +00:00
*/
2016-11-11 13:17:50 +00:00
createAccount(): q.Promise<{}>;
2017-01-01 20:20:12 +00:00
agreeTos(): q.Promise<{}>;
/**
2017-01-01 23:18:51 +00:00
* requests a challenge for a domain
* @param domainNameArg - the domain name to request a challenge for
* @param challengeType - the challenge type to request
2017-01-01 20:20:12 +00:00
*/
2017-01-01 23:18:51 +00:00
requestChallenge(domainNameArg: string, challengeTypeArg?: TChallenge): q.Promise<{}>;
/**
* getCertificate - takes care of cooldown, validation polling and certificate retrieval
*/
getCertificate(): void;
/**
* accept a challenge - for private use only
*/
private acceptChallenge(challenge);
2016-11-01 17:27:57 +00:00
}