-
Notifications
You must be signed in to change notification settings - Fork 264
Expand file tree
/
Copy pathRRSIGRecord.java
More file actions
104 lines (99 loc) · 2.81 KB
/
Copy pathRRSIGRecord.java
File metadata and controls
104 lines (99 loc) · 2.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)
package org.xbill.DNS;
import java.time.Instant;
import java.util.Date;
/**
* Resource Record Signature - An RRSIG provides the digital signature of an RRset, so that the data
* can be authenticated by a DNSSEC-capable resolver. The signature is generated by a key contained
* in a DNSKEY Record.
*
* @see RRset
* @see DNSSEC
* @see KEYRecord
* @see <a href="https://datatracker.ietf.org/doc/html/rfc4034">RFC 4034: Resource Records for the
* DNS Security Extensions</a>
* @author Brian Wellington
*/
public class RRSIGRecord extends SIGBase {
RRSIGRecord() {}
/**
* Creates an RRSIG Record from the given data
*
* @param covered The RRset type covered by this signature
* @param alg The cryptographic algorithm of the key that generated the signature
* @param origttl The original TTL of the RRset
* @param expire The time at which the signature expires
* @param timeSigned The time at which this signature was generated
* @param footprint The footprint/key id of the signing key.
* @param signer The owner of the signing key
* @param signature Binary data representing the signature
*/
public RRSIGRecord(
Name name,
int dclass,
long ttl,
int covered,
int alg,
long origttl,
Instant expire,
Instant timeSigned,
int footprint,
Name signer,
byte[] signature) {
super(
name,
Type.RRSIG,
dclass,
ttl,
covered,
alg,
origttl,
expire,
timeSigned,
footprint,
signer,
signature);
}
/**
* Creates an RRSIG Record from the given data
*
* @param covered The RRset type covered by this signature
* @param alg The cryptographic algorithm of the key that generated the signature
* @param origttl The original TTL of the RRset
* @param expire The time at which the signature expires
* @param timeSigned The time at which this signature was generated
* @param footprint The footprint/key id of the signing key.
* @param signer The owner of the signing key
* @param signature Binary data representing the signature
* @deprecated use {@link #RRSIGRecord(Name, int, long, int, int, long, Instant, Instant, int,
* Name, byte[])}
*/
@Deprecated
public RRSIGRecord(
Name name,
int dclass,
long ttl,
int covered,
int alg,
long origttl,
Date expire,
Date timeSigned,
int footprint,
Name signer,
byte[] signature) {
super(
name,
Type.RRSIG,
dclass,
ttl,
covered,
alg,
origttl,
expire.toInstant(),
timeSigned.toInstant(),
footprint,
signer,
signature);
}
}