blob: c0928395b83de113ebdd9b4709b74f065d04a224 [file] [log] [blame]
Shuyi Chend7955ce2013-05-22 14:51:55 -07001// Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)
2
3package org.xbill.DNS;
4
5import 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
18public class RRSIGRecord extends SIGBase {
19
20private static final long serialVersionUID = -2609150673537226317L;
21
22RRSIGRecord() {}
23
24Record
25getObject() {
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 */
41public
42RRSIGRecord(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}