Package org.minidns.record
Class RRSIG
java.lang.Object
org.minidns.record.Data
org.minidns.record.RRSIG
RRSIG record payload.
-
Field Summary
Modifier and TypeFieldDescriptionThe cryptographic algorithm used to create the signature.final byte
The cryptographic algorithm used to create the signature.final int
The key tag value of the DNSKEY RR that validates this signature.final byte
The number of labels in the original RRSIG RR owner name.final long
The TTL of the covered RRset.final Date
The date and time this RRSIG records expires.final Date
The date and time this RRSIG records starts to be valid.final DnsName
The owner name of the DNSKEY RR that a validator is supposed to use.final Record.TYPE
The type of RRset covered by this signature. -
Constructor Summary
ConstructorDescriptionRRSIG
(Record.TYPE typeCovered, int algorithm, byte labels, long originalTtl, Date signatureExpiration, Date signatureInception, int keyTag, String signerName, byte[] signature) RRSIG
(Record.TYPE typeCovered, int algorithm, byte labels, long originalTtl, Date signatureExpiration, Date signatureInception, int keyTag, DnsName signerName, byte[] signature) RRSIG
(Record.TYPE typeCovered, DnssecConstants.SignatureAlgorithm algorithm, byte labels, long originalTtl, Date signatureExpiration, Date signatureInception, int keyTag, String signerName, byte[] signature) RRSIG
(Record.TYPE typeCovered, DnssecConstants.SignatureAlgorithm algorithm, byte labels, long originalTtl, Date signatureExpiration, Date signatureInception, int keyTag, DnsName signerName, byte[] signature) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
int
getType()
The payload type.static RRSIG
parse
(DataInputStream dis, byte[] data, int length) void
The internal method used to serialize Data subclasses.toString()
void
Methods inherited from class org.minidns.record.Data
equals, hashCode, length, toByteArray, toOutputStream, toOutputStream
-
Field Details
-
typeCovered
The type of RRset covered by this signature. -
algorithm
The cryptographic algorithm used to create the signature. -
algorithmByte
The cryptographic algorithm used to create the signature. -
labels
The number of labels in the original RRSIG RR owner name. -
originalTtl
The TTL of the covered RRset. -
signatureExpiration
The date and time this RRSIG records expires. -
signatureInception
The date and time this RRSIG records starts to be valid. -
keyTag
The key tag value of the DNSKEY RR that validates this signature. -
signerName
The owner name of the DNSKEY RR that a validator is supposed to use.
-
-
Constructor Details
-
RRSIG
public RRSIG(Record.TYPE typeCovered, int algorithm, byte labels, long originalTtl, Date signatureExpiration, Date signatureInception, int keyTag, DnsName signerName, byte[] signature) -
RRSIG
public RRSIG(Record.TYPE typeCovered, int algorithm, byte labels, long originalTtl, Date signatureExpiration, Date signatureInception, int keyTag, String signerName, byte[] signature) -
RRSIG
public RRSIG(Record.TYPE typeCovered, DnssecConstants.SignatureAlgorithm algorithm, byte labels, long originalTtl, Date signatureExpiration, Date signatureInception, int keyTag, DnsName signerName, byte[] signature) -
RRSIG
public RRSIG(Record.TYPE typeCovered, DnssecConstants.SignatureAlgorithm algorithm, byte labels, long originalTtl, Date signatureExpiration, Date signatureInception, int keyTag, String signerName, byte[] signature)
-
-
Method Details
-
parse
- Throws:
IOException
-
getSignature
-
getSignatureAsDataInputStream
-
getSignatureLength
-
getSignatureBase64
-
getType
Description copied from class:Data
The payload type. -
serialize
Description copied from class:Data
The internal method used to serialize Data subclasses.- Specified by:
serialize
in classData
- Parameters:
dos
- the output stream to serialize to.- Throws:
IOException
- if an I/O error occurs.
-
writePartialSignature
- Throws:
IOException
-
toString
-