}
public Domain(User actor, CertificateOwner owner, String suffix) throws GigiApiException {
+ suffix = suffix.toLowerCase();
synchronized (Domain.class) {
checkCertifyableDomain(suffix, actor.isInGroup(Group.CODESIGNING));
this.owner = owner;
boolean existed = rs.next();
rs.close();
if (existed) {
- throw new GigiApiException("Domain could not be inserted. Domain is already valid.");
+ throw new GigiApiException("Domain could not be inserted. Domain is already known to the system.");
}
}
}