Class RRSIG


  • public class RRSIG
    extends Data
    RRSIG record payload.
    • Field Detail

      • 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,
                     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
      • serialize

        public void serialize​(java.io.DataOutputStream dos)
                       throws java.io.IOException
        Description copied from class: Data
        The internal method used to serialize Data subclasses.
        Specified by:
        serialize in class Data
        Parameters:
        dos - the output stream to serialize to.
        Throws:
        java.io.IOException - if an I/O error occurs.
      • writePartialSignature

        public void writePartialSignature​(java.io.DataOutputStream dos)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object