if (login) {
result.setLoginEnabled(true);
}
+ if (req.getParameter("description") != null) {
+ String description = req.getParameter("description").trim();
+ if (description.length() > 100) {
+ throw new GigiApiException("Submitted description is longer than 100 characters.");
+ }
+ result.setDescription(description);
+ }
result.issue(issueDate.getFrom(), issueDate.getTo(), c.getActor()).waitFor(60000);
this.result = result;
Certificate c = result;
@Override
protected void outputContent(PrintWriter out, Language l, Map<String, Object> vars) {
HashMap<String, Object> vars2 = new HashMap<String, Object>(vars);
-
StringBuffer content = new StringBuffer();
for (SubjectAlternateName SAN : cr.getSANs()) {
content.append(SAN.getType().toString().toLowerCase());