public class RRSIGRecord extends Record
RRset
,
DNSSEC
,
KEYRecord
,
RFC 4034: Resource Records for the DNS
Security Extensions,
Serialized FormModifier and Type | Field and Description |
---|---|
protected int |
alg |
protected int |
covered |
protected Instant |
expire |
protected int |
footprint |
protected int |
labels |
protected long |
origttl |
protected byte[] |
signature |
protected Name |
signer |
protected Instant |
timeSigned |
Constructor and Description |
---|
RRSIGRecord(Name name,
int dclass,
long ttl,
int covered,
int alg,
long origttl,
Date expire,
Date timeSigned,
int footprint,
Name signer,
byte[] signature)
|
RRSIGRecord(Name name,
int dclass,
long ttl,
int covered,
int alg,
long origttl,
Instant expire,
Instant timeSigned,
int footprint,
Name signer,
byte[] signature)
Creates an RRSIG Record from the given data
|
Modifier and Type | Method and Description |
---|---|
int |
getAlgorithm()
Returns the cryptographic algorithm of the key that generated the signature
|
Instant |
getExpire()
Returns the time at which the signature expires
|
int |
getFootprint()
Returns the footprint/key id of the signing key.
|
int |
getLabels()
Returns the number of labels in the signed domain name.
|
long |
getOrigTTL()
Returns the original TTL of the RRset
|
int |
getRRsetType()
Returns the type of RRset that this record would belong to.
|
byte[] |
getSignature()
Returns the binary data representing the signature
|
Name |
getSigner()
Returns the owner of the signing key
|
Instant |
getTimeSigned()
Returns the time at which this signature was generated
|
int |
getTypeCovered()
Returns the RRset type covered by this signature
|
protected void |
rdataFromString(Tokenizer st,
Name origin)
Converts the text format of an RR to the internal format - must be overriden
|
protected void |
rrFromWire(DNSInput in)
Converts the type-specific RR to wire format - must be overridden
|
protected String |
rrToString()
Converts the RRSIG/SIG Record to a String
|
protected void |
rrToWire(DNSOutput out,
Compression c,
boolean canonical)
Converts the type-specific RR to wire format - must be overridden.
|
byteArrayFromString, byteArrayToString, compareTo, equals, fromString, fromString, fromWire, getAdditionalName, getDClass, getName, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, toString, toWire, toWireCanonical, unknownToString, withName
protected int covered
protected int alg
protected int labels
protected long origttl
protected Instant expire
protected Instant timeSigned
protected int footprint
protected Name signer
protected byte[] 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)
covered
- The RRset type covered by this signaturealg
- The cryptographic algorithm of the key that generated the signatureorigttl
- The original TTL of the RRsetexpire
- The time at which the signature expirestimeSigned
- The time at which this signature was generatedfootprint
- The footprint/key id of the signing key.signer
- The owner of the signing keysignature
- Binary data representing the signature@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)
covered
- The RRset type covered by this signaturealg
- The cryptographic algorithm of the key that generated the signatureorigttl
- The original TTL of the RRsetexpire
- The time at which the signature expirestimeSigned
- The time at which this signature was generatedfootprint
- The footprint/key id of the signing key.signer
- The owner of the signing keysignature
- Binary data representing the signatureprotected void rrFromWire(DNSInput in) throws IOException
Record
rrFromWire
in class Record
IOException
protected void rdataFromString(Tokenizer st, Name origin) throws IOException
Record
rdataFromString
in class Record
IOException
protected String rrToString()
rrToString
in class Record
public int getTypeCovered()
public int getRRsetType()
getRRsetType
in class Record
Type
,
RRset
,
Record.getRRsetType()
public int getAlgorithm()
public int getLabels()
public long getOrigTTL()
public Instant getExpire()
public Instant getTimeSigned()
public int getFootprint()
public Name getSigner()
public byte[] getSignature()
protected void rrToWire(DNSOutput out, Compression c, boolean canonical)
Record
Copyright © 2022 dnsjava.org. All rights reserved.