Class DelegatingDnssecRR

  • Direct Known Subclasses:
    DLV, DS

    public abstract class DelegatingDnssecRR
    extends Data
    DS (Delegation Signer) record payload.
    See Also:
    RFC 4034 ยง 5
    • Field Detail

      • keyTag

        public final int keyTag
        The key tag value of the DNSKEY RR that validates this signature.
      • algorithmByte

        public final byte algorithmByte
        The byte value of the cryptographic algorithm used to create the signature.
      • digestTypeByte

        public final byte digestTypeByte
        The byte value of algorithm used to construct the digest.
      • digest

        protected final byte[] digest
        The digest build from a DNSKEY.
    • Method Detail

      • parseSharedData

        protected static DelegatingDnssecRR.SharedData parseSharedData​(java.io.DataInputStream dis,
                                                                       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.
      • toString

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

        public java.math.BigInteger getDigestBigInteger()
      • getDigestHex

        public java.lang.String getDigestHex()
      • digestEquals

        public boolean digestEquals​(byte[] otherDigest)