generate_() {
    var name = '';
    var email = this.getElementByClass(constants.CssClass.EMAIL).value;
    var comments = '';

    // TODO(radi): Add a mechanism to allow the user to adjust this.
    var expDate = Math.floor(new Date('9999/12/31').getTime() / 1e3);

    this.callback_(this, name, email, comments, expDate);
  }
Generates a new PGP key using the information provided by the user.
@private