Package org.minidns.record
Class RRSIG
java.lang.Object
org.minidns.record.Data
org.minidns.record.RRSIG
public class RRSIG extends Data
RRSIG record payload.
-
Field Summary
Fields Modifier and Type Field Description DnssecConstants.SignatureAlgorithmalgorithmThe cryptographic algorithm used to create the signature.bytealgorithmByteThe cryptographic algorithm used to create the signature.intkeyTagThe key tag value of the DNSKEY RR that validates this signature.bytelabelsThe number of labels in the original RRSIG RR owner name.longoriginalTtlThe TTL of the covered RRset.DatesignatureExpirationThe date and time this RRSIG records expires.DatesignatureInceptionThe date and time this RRSIG records starts to be valid.DnsNamesignerNameThe owner name of the DNSKEY RR that a validator is supposed to use.Record.TYPEtypeCoveredThe type of RRset covered by this signature. -
Constructor Summary
Constructors Constructor Description RRSIG(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 Type Method Description byte[]getSignature()DataInputStreamgetSignatureAsDataInputStream()StringgetSignatureBase64()intgetSignatureLength()Record.TYPEgetType()The payload type.static RRSIGparse(DataInputStream dis, byte[] data, int length)voidserialize(DataOutputStream dos)The internal method used to serialize Data subclasses.StringtoString()voidwritePartialSignature(DataOutputStream dos)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
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
-