Class NSEC3


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

      • FLAG_OPT_OUT

        public static final byte FLAG_OPT_OUT
        This Flag indicates whether this NSEC3 RR may cover unsigned delegations.
        See Also:
        Constant Field Values
      • hashAlgorithm

        public final NSEC3.HashAlgorithm hashAlgorithm
        The cryptographic hash algorithm used. If MiniDNS isn't aware of the hash algorithm, then this field will be null.
        See Also:
        hashAlgorithmByte
      • hashAlgorithmByte

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

        public final byte flags
        Bitmap of flags: FLAG_OPT_OUT.
      • iterations

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

        public final 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,
                     List<Record.TYPE> types)
      • NSEC3

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

      • getType

        public Record.TYPE getType()
        Description copied from class: Data
        The payload type.
        Specified by:
        getType in class Data
        Returns:
        The payload type.
      • serialize

        public void serialize​(DataOutputStream dos)
                       throws 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:
        IOException - if an I/O error occurs.
      • getSalt

        public byte[] getSalt()
      • getSaltLength

        public int getSaltLength()
      • getNextHashed

        public byte[] getNextHashed()
      • getNextHashedBase32

        public String getNextHashedBase32()
      • getNextHashedDnsLabel

        public DnsLabel getNextHashedDnsLabel()
      • copySaltInto

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