1 // Copyright (c) 1999-2004 Brian Wellington (bwelling (at) xbill.org) 2 3 package org.xbill.DNS; 4 5 import java.util.*; 6 7 /** 8 * Signature - A SIG provides the digital signature of an RRset, so that 9 * the data can be authenticated by a DNSSEC-capable resolver. The 10 * signature is usually generated by a key contained in a KEYRecord 11 * @see RRset 12 * @see DNSSEC 13 * @see KEYRecord 14 * 15 * @author Brian Wellington 16 */ 17 18 public class SIGRecord extends SIGBase { 19 20 private static final long serialVersionUID = 4963556060953589058L; 21 22 SIGRecord() {} 23 24 Record 25 getObject() { 26 return new SIGRecord(); 27 } 28 29 /** 30 * Creates an SIG Record from the given data 31 * @param covered The RRset type covered by this signature 32 * @param alg The cryptographic algorithm of the key that generated the 33 * signature 34 * @param origttl The original TTL of the RRset 35 * @param expire The time at which the signature expires 36 * @param timeSigned The time at which this signature was generated 37 * @param footprint The footprint/key id of the signing key. 38 * @param signer The owner of the signing key 39 * @param signature Binary data representing the signature 40 */ 41 public 42 SIGRecord(Name name, int dclass, long ttl, int covered, int alg, long origttl, 43 Date expire, Date timeSigned, int footprint, Name signer, 44 byte [] signature) 45 { 46 super(name, Type.SIG, dclass, ttl, covered, alg, origttl, expire, 47 timeSigned, footprint, signer, signature); 48 } 49 50 } 51