Package org.minidns.record
Class RRSIG
java.lang.Object
org.minidns.record.Data
org.minidns.record.RRSIG
RRSIG record payload.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe cryptographic algorithm used to create the signature.final byteThe cryptographic algorithm used to create the signature.final intThe key tag value of the DNSKEY RR that validates this signature.final byteThe number of labels in the original RRSIG RR owner name.final longThe TTL of the covered RRset.final DateThe date and time this RRSIG records expires.final DateThe date and time this RRSIG records starts to be valid.final DnsNameThe owner name of the DNSKEY RR that a validator is supposed to use.final Record.TYPEThe type of RRset covered by this signature. -
Constructor Summary
ConstructorsConstructorDescriptionRRSIG(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[]intgetType()The payload type.static RRSIGparse(DataInputStream dis, byte[] data, int length) voidThe internal method used to serialize Data subclasses.toString()voidMethods 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
public final byte algorithmByteThe cryptographic algorithm used to create the signature. -
labels
public final byte labelsThe number of labels in the original RRSIG RR owner name. -
originalTtl
public final long originalTtlThe 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
public final int keyTagThe 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
public byte[] getSignature() -
getSignatureAsDataInputStream
-
getSignatureLength
public int getSignatureLength() -
getSignatureBase64
-
getType
Description copied from class:DataThe payload type. -
serialize
Description copied from class:DataThe internal method used to serialize Data subclasses.- Specified by:
serializein classData- Parameters:
dos- the output stream to serialize to.- Throws:
IOException- if an I/O error occurs.
-
writePartialSignature
- Throws:
IOException
-
toString
-