abstract class SIGBase extends Record
Modifier and Type | Field and Description |
---|---|
protected int |
alg |
protected int |
covered |
protected java.time.Instant |
expire |
protected int |
footprint |
protected int |
labels |
protected long |
origttl |
protected byte[] |
signature |
protected Name |
signer |
protected java.time.Instant |
timeSigned |
Modifier | Constructor and Description |
---|---|
protected |
SIGBase() |
|
SIGBase(Name name,
int type,
int dclass,
long ttl,
int covered,
int alg,
long origttl,
java.time.Instant expire,
java.time.Instant timeSigned,
int footprint,
Name signer,
byte[] signature) |
Modifier and Type | Method and Description |
---|---|
int |
getAlgorithm()
Returns the cryptographic algorithm of the key that generated the signature
|
java.time.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
|
java.time.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 java.lang.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.
|
(package private) void |
setSignature(byte[] signature) |
byteArrayFromString, byteArrayToString, checkByteArrayLength, checkName, checkU16, checkU32, checkU8, cloneRecord, compareTo, equals, fromString, fromString, fromWire, fromWire, fromWire, getAdditionalName, getDClass, getName, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, sameRRset, setTTL, toString, toWire, toWire, toWireCanonical, unknownToString, withDClass, withName, writeReplace
protected int covered
protected int alg
protected int labels
protected long origttl
protected java.time.Instant expire
protected java.time.Instant timeSigned
protected int footprint
protected Name signer
protected byte[] signature
protected void rrFromWire(DNSInput in) throws java.io.IOException
Record
rrFromWire
in class Record
java.io.IOException
protected void rdataFromString(Tokenizer st, Name origin) throws java.io.IOException
Record
rdataFromString
in class Record
java.io.IOException
protected java.lang.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 java.time.Instant getExpire()
public java.time.Instant getTimeSigned()
public int getFootprint()
public Name getSigner()
public byte[] getSignature()
void setSignature(byte[] signature)
protected void rrToWire(DNSOutput out, Compression c, boolean canonical)
Record