Package org.minidns.record
Class RRSIG
- java.lang.Object
-
- org.minidns.record.Data
-
- org.minidns.record.RRSIG
-
-
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.java.util.DatesignatureExpirationThe date and time this RRSIG records expires.java.util.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, java.util.Date signatureExpiration, java.util.Date signatureInception, int keyTag, java.lang.String signerName, byte[] signature)RRSIG(Record.TYPE typeCovered, int algorithm, byte labels, long originalTtl, java.util.Date signatureExpiration, java.util.Date signatureInception, int keyTag, DnsName signerName, byte[] signature)RRSIG(Record.TYPE typeCovered, DnssecConstants.SignatureAlgorithm algorithm, byte labels, long originalTtl, java.util.Date signatureExpiration, java.util.Date signatureInception, int keyTag, java.lang.String signerName, byte[] signature)RRSIG(Record.TYPE typeCovered, DnssecConstants.SignatureAlgorithm algorithm, byte labels, long originalTtl, java.util.Date signatureExpiration, java.util.Date signatureInception, int keyTag, DnsName signerName, byte[] signature)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getSignature()java.io.DataInputStreamgetSignatureAsDataInputStream()java.lang.StringgetSignatureBase64()intgetSignatureLength()Record.TYPEgetType()The payload type.static RRSIGparse(java.io.DataInputStream dis, byte[] data, int length)voidserialize(java.io.DataOutputStream dos)The internal method used to serialize Data subclasses.java.lang.StringtoString()voidwritePartialSignature(java.io.DataOutputStream dos)-
Methods inherited from class org.minidns.record.Data
equals, hashCode, length, toByteArray, toOutputStream, toOutputStream
-
-
-
-
Field Detail
-
typeCovered
public final Record.TYPE typeCovered
The type of RRset covered by this signature.
-
algorithm
public final DnssecConstants.SignatureAlgorithm algorithm
The cryptographic algorithm used to create the signature.
-
algorithmByte
public final byte algorithmByte
The cryptographic algorithm used to create the signature.
-
labels
public final byte labels
The number of labels in the original RRSIG RR owner name.
-
originalTtl
public final long originalTtl
The TTL of the covered RRset.
-
signatureExpiration
public final java.util.Date signatureExpiration
The date and time this RRSIG records expires.
-
signatureInception
public final java.util.Date signatureInception
The date and time this RRSIG records starts to be valid.
-
keyTag
public final int keyTag
The key tag value of the DNSKEY RR that validates this signature.
-
signerName
public final DnsName signerName
The owner name of the DNSKEY RR that a validator is supposed to use.
-
-
Constructor Detail
-
RRSIG
public RRSIG(Record.TYPE typeCovered, int algorithm, byte labels, long originalTtl, java.util.Date signatureExpiration, java.util.Date signatureInception, int keyTag, DnsName signerName, byte[] signature)
-
RRSIG
public RRSIG(Record.TYPE typeCovered, int algorithm, byte labels, long originalTtl, java.util.Date signatureExpiration, java.util.Date signatureInception, int keyTag, java.lang.String signerName, byte[] signature)
-
RRSIG
public RRSIG(Record.TYPE typeCovered, DnssecConstants.SignatureAlgorithm algorithm, byte labels, long originalTtl, java.util.Date signatureExpiration, java.util.Date signatureInception, int keyTag, DnsName signerName, byte[] signature)
-
RRSIG
public RRSIG(Record.TYPE typeCovered, DnssecConstants.SignatureAlgorithm algorithm, byte labels, long originalTtl, java.util.Date signatureExpiration, java.util.Date signatureInception, int keyTag, java.lang.String signerName, byte[] signature)
-
-
Method Detail
-
parse
public static RRSIG parse(java.io.DataInputStream dis, byte[] data, int length) throws java.io.IOException
- Throws:
java.io.IOException
-
getSignature
public byte[] getSignature()
-
getSignatureAsDataInputStream
public java.io.DataInputStream getSignatureAsDataInputStream()
-
getSignatureLength
public int getSignatureLength()
-
getSignatureBase64
public java.lang.String getSignatureBase64()
-
getType
public Record.TYPE getType()
Description copied from class:DataThe payload type.
-
serialize
public void serialize(java.io.DataOutputStream dos) throws java.io.IOException
Description copied from class:DataThe internal method used to serialize Data subclasses.
-
writePartialSignature
public void writePartialSignature(java.io.DataOutputStream dos) throws java.io.IOException
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-