init method

Future<void> init()

Will initate the ACME client.

The client will fetch the directories according to the given baseUrl and try to retreive the account information. Depending on createIfNotExists it will create a new account if none exists.

Implementation

Future<void> init() async {
  // Validate data
  validateData();

  // Load directories
  directories = await _getDirectories();

  // Get Account
  account = await getAccount(createIfnotExists: createIfNotExists);
}