01: // Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)
02:
03: package org.xbill.DNS;
04:
05: import java.util.*;
06:
07: /**
08: * Recource Record Signature - An RRSIG provides the digital signature of an
09: * 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: RRSIGRecord() {
21: }
22:
23: Record getObject() {
24: return new RRSIGRecord();
25: }
26:
27: /**
28: * Creates an RRSIG Record from the given data
29: * @param covered The RRset type covered by this signature
30: * @param alg The cryptographic algorithm of the key that generated the
31: * signature
32: * @param origttl The original TTL of the RRset
33: * @param expire The time at which the signature expires
34: * @param timeSigned The time at which this signature was generated
35: * @param footprint The footprint/key id of the signing key.
36: * @param signer The owner of the signing key
37: * @param signature Binary data representing the signature
38: */
39: public RRSIGRecord(Name name, int dclass, long ttl, int covered,
40: int alg, long origttl, Date expire, Date timeSigned,
41: int footprint, Name signer, byte[] signature) {
42: super(name, Type.RRSIG, dclass, ttl, covered, alg, origttl,
43: expire, timeSigned, footprint, signer, signature);
44: }
45:
46: }
|