private void authorizeDomain(Registration registration,String domain){
  try {
    val authorization=getAuthorization(registration,domain);
    val challenge=prepareDnsChallenge(authorization);
    completeChallenge(challenge);
  }
 catch (  AcmeException e) {
    e.printStackTrace();
    throw new LetsencryptException(e.getMessage());
  }
}

private void authorizeDomain ( Registration registration , String domain ) { try { val authorization = getAuthorization ( registration , domain ) ; val challenge = prepareDnsChallenge ( authorization ) ; completeChallenge ( challenge ) ; } catch ( AcmeException e ) { e . printStackTrace ( ) ; throw new LetsencryptException ( e . getMessage ( ) ) ; } }
performs the authorization flow for a single domain after which the domain is authorized for the given registration .
