• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)
2 
3 package org.xbill.DNS;
4 
5 import java.util.*;
6 
7 /**
8  * Recource Record Signature - An RRSIG provides the digital signature of an
9  * RRset, so that the data can be authenticated by a DNSSEC-capable resolver.
10  * The signature is generated by a key contained in a DNSKEY Record.
11  * @see RRset
12  * @see DNSSEC
13  * @see KEYRecord
14  *
15  * @author Brian Wellington
16  */
17 
18 public class RRSIGRecord extends SIGBase {
19 
20 private static final long serialVersionUID = -2609150673537226317L;
21 
RRSIGRecord()22 RRSIGRecord() {}
23 
24 Record
getObject()25 getObject() {
26 	return new RRSIGRecord();
27 }
28 
29 /**
30  * Creates an RRSIG 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
RRSIGRecord(Name name, int dclass, long ttl, int covered, int alg, long origttl, Date expire, Date timeSigned, int footprint, Name signer, byte [] signature)42 RRSIGRecord(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.RRSIG, dclass, ttl, covered, alg, origttl, expire,
47 	      timeSigned, footprint, signer, signature);
48 }
49 
50 }
51