Class NSEC3


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

      • hashAlgorithmByte

        public final byte hashAlgorithmByte
        The byte value of the cryptographic hash algorithm used.
      • iterations

        public final int iterations
        The number of iterations the hash algorithm is applied.
      • types

        public final java.util.List<Record.TYPE> types
        The RR types existing at the original owner name.
    • Constructor Detail

      • NSEC3

        public NSEC3​(byte hashAlgorithm,
                     byte flags,
                     int iterations,
                     byte[] salt,
                     byte[] nextHashed,
                     java.util.List<Record.TYPE> types)
      • NSEC3

        public NSEC3​(byte hashAlgorithm,
                     byte flags,
                     int iterations,
                     byte[] salt,
                     byte[] nextHashed,
                     Record.TYPE... types)
    • Method Detail

      • parse

        public static NSEC3 parse​(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
      • getSalt

        public byte[] getSalt()
      • copySaltInto

        public void copySaltInto​(byte[] dest,
                                 int destPos)