Package org.minidns.record
Class NSEC3
java.lang.Object
org.minidns.record.Data
org.minidns.record.NSEC3
NSEC3 record payload.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final byte
This Flag indicates whether this NSEC3 RR may cover unsigned delegations.final byte
Bitmap of flags:FLAG_OPT_OUT
.final NSEC3.HashAlgorithm
The cryptographic hash algorithm used.final byte
The byte value of the cryptographic hash algorithm used.final int
The number of iterations the hash algorithm is applied.final List
<Record.TYPE> The RR types existing at the original owner name. -
Constructor Summary
ConstructorDescriptionNSEC3
(byte hashAlgorithm, byte flags, int iterations, byte[] salt, byte[] nextHashed, List<Record.TYPE> types) NSEC3
(byte hashAlgorithm, byte flags, int iterations, byte[] salt, byte[] nextHashed, Record.TYPE... types) -
Method Summary
Modifier and TypeMethodDescriptionvoid
copySaltInto
(byte[] dest, int destPos) byte[]
byte[]
getSalt()
int
getType()
The payload type.static NSEC3
parse
(DataInputStream dis, int length) void
The internal method used to serialize Data subclasses.toString()
Methods inherited from class org.minidns.record.Data
equals, hashCode, length, toByteArray, toOutputStream, toOutputStream
-
Field Details
-
FLAG_OPT_OUT
This Flag indicates whether this NSEC3 RR may cover unsigned delegations.- See Also:
-
hashAlgorithm
The cryptographic hash algorithm used. If MiniDNS isn't aware of the hash algorithm, then this field will benull
.- See Also:
-
hashAlgorithmByte
The byte value of the cryptographic hash algorithm used. -
flags
Bitmap of flags:FLAG_OPT_OUT
. -
iterations
The number of iterations the hash algorithm is applied. -
types
The RR types existing at the original owner name.
-
-
Constructor Details
-
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 Details
-
parse
- Throws:
IOException
-
getType
Description copied from class:Data
The payload type. -
serialize
Description copied from class:Data
The internal method used to serialize Data subclasses.- Specified by:
serialize
in classData
- Parameters:
dos
- the output stream to serialize to.- Throws:
IOException
- if an I/O error occurs.
-
toString
-
getSalt
-
getSaltLength
-
getNextHashed
-
getNextHashedBase32
-
getNextHashedDnsLabel
-
copySaltInto
-