/*
* RSA signatures are already in correct format, but Java DSA
* routines use ASN.1; convert this to SIG format.
*/
if (algorithm == DNSSEC.DSA) {
DSAKey dsakey = (DSAKey) privateKey;
signature = DSASignature.toDNS(dsakey.getParams(), signature);
}
SIGRecord sig = new SIGRecord(Name.root, DClass.ANY, 0, 0, algorithm,
0, timeExpires, timeSigned, footprint,
name, signature);